[RESOLVED] Adding a custom link on top of each bug?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
BlackEye
Posts: 7
Joined: 03 Sep 2016, 12:33

[RESOLVED] Adding a custom link on top of each bug?

Post by BlackEye »

We use OTRS as our ticket system. If we open from such a ticket a new mantis entry or if there is an existing bug entry in mantis related to that topic, we add the mantis Bug-Number in a custom field of the otrs-ticket.
This way we "link" an OTRS-Ticket to a Mantis-Bug.
Later, when the mantis bug is going to be closed, I want to search all the OTRS-Tickets related to that bug. This is possible with a link like this:

Code: Select all

http://[otrs-url]/index.pl?Action=AgentTicketSearch;Subaction=Search;ShownAttributes=LabelSearch_DynamicField_BugTrackerID;Search_DynamicField_BugTrackerID=[Mantis Bug-ID]
Now I ask myself if there is an easy way to add a custom link on top of each Bug (on the view.php page) to open such a link (containing the current bug-id of course).
Do mantis have such a feature or do I need to edit the view.php page myself?
Last edited by BlackEye on 15 Sep 2016, 13:12, edited 1 time in total.
atrol
Site Admin
Posts: 8376
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Adding a custom link on top of each bug?

Post by atrol »

You can write a small plugin that catches event EVENT_MENU_ISSUE.
This is the better way than changing original Mantis source.
Please use Search before posting and read the Manual
BlackEye
Posts: 7
Joined: 03 Sep 2016, 12:33

Re: Adding a custom link on top of each bug?

Post by BlackEye »

Great, works like a charm.
Thanks!
Post Reply