
Hi, We are using Bugzilla for some time now, and we wanted to have some interaction between OTRS and Bugzilla, so I have coded something quite simple but that fits our needs, and might fit other people's too. I know such interfacing is on the TODO list, but I hope it may help someone, and maybe give ideas to the dev team ? It works that way : in zoom view, you have a new 'bugzilla' link. Click on it to have the bugzilla form, prefilled with the url of the ticket. Whenever a bugzilla user clicks on the url, he will be shown the whole ticket within OTRS. It consists of a new Module Kernel/Modules/AgentTicketAddBug.pm, a new template file : Kernel/Output/HTML/Standard/AgentTicketAddBug.dtl and a modification on Kernel/Output/HTML/Standard/AgentZoomHead.dtl. You should modify AgentTicketAddBug.dtl to adapt it to your bugzilla confiduration (fields options), and you have to set a few variables in Kernel/Config.pm : $Self->{UseBugzilla} = 1; $Self->{BugzillaUrl} = 'http://host.example.com/bugs' ; $Self->{BugzillaUser} = 'bugzilla'; $Self->{BugzillaPassword} = 'bugzillapw' Also note that you have to use HTTP Basic Auth for User Authentification, because the item entered in Bugzilla is a link to the ticket in the form : http://bugzilla:bugzillapw@host.example.com/otrs. Yes, it means you have to create a bugzilla user, with appropriate permissions to the tickets you want to add to bugzilla. I've been using mod_auth_mysql so I can use the DB backend with HTTP Auth, without the need for an .htpasswd. I've tested it on otrs 1.2beta1, 2, 3, and it should run on 1.1.3 also. (files come in attachement) Hope that helps, Brice Levy
participants (1)
-
Brice Levy