#xxxx redirect to ticket

  • 6 December 2016
  • 3 replies
  • 620 views


An custom app to be able to add into a ticket the ID of another one and so when you click on it, it open it to another tab.




Ex. I write something to note to see this ticket #1234. So the : [ #1234 ] is clickable to goes to the actual ticket witch has this name number.



3 replies


 Try something like this: 


<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("[rel*='image-enlarge']").html(function(i, text) {
return text.replace(/#([0-9]+)/igm, '<a href="/helpdesk/tickets/$1">$1</a>');
});
});
</script>

  



@Betram: That is quite a quick/smart hack. Do you work on custom app requests (paid)? We are looking to hire a full-time or part-time developer who can join us to work on this problem and many others.



Thank you Manan, but I am not interested.


Reply