Hi all,
For the purpose of a streamlined workflow. We want to add the “Add organisation” button to the ticket view template.
I have succeeded in adding the link but for some reason i cant seem to get the AJAX request working.
I have already done the following things:
- Included the organisations class file to the ticket class file
- Updatet ajax.tickets.php and added the updateOrg function to it
- Edited the ajax.php to include the updateOrg function selector to the /tickets pattern
But even though i have tried this the button still appends the “#tickets/65/org” to the end of the URL instead of making an AJAX call.
My gut tells me that this is because i have set the pattern incorrectly in the ajax.php file but i cant seem to figure out how i can get the ajax call to go out.
Maybe im overcomplicating something here which prevents me from seeing the bigger picture.
Can anyone help me out adding this functionality to the ticketview? Below is a screenshot of the button im trying to add for context. Hopefully someone can help me out!

