Wednesday, September 9, 2009

Customize Email notification layout in mantis bug tracker | Custom Email layout in mantis bug tracker | Email layout cusmize in mantis

No doubt Mantis is a great bug tracker and the plug-in support of this web application is really cool and useful. In my office I am administrating the Mantis bug tracker. Hence my colleagues requested me to customize the layout of the Mantis Email notifications. They don't want detailed mails and just wanted short note regarding the issues. At that time I was not aware with the Mantis in depth. So taken it as a challenge. I have gone through Mantis document and googled it. Found nothing very promising. This was a great surprise to me as Mantis is one of the most used open source Bug tracker and yet don't have the support of customized email notifications. The most favorable link I got from the Google was - http://www.mantisbt.org/bugs/view.php?id=4278


But my problem was yet to be solved, so I had decided to find the exact file responsible for the layout of the email notification. After 1 or 2 days of brainstorming and searching I had got the file “email_api.php” in core folder of mantis directory. And searched and commented out the appropriate code structure according to our need.
Here is the default email notification layout Mantis offered 1 image

(Image 1)

I have commented the highlighted lines from the following code.



(Image 2)

And finally I have got the needful. Look it at the following image -



(image-3)

That is the only way I have found to solve it and customize it according to my need.

Keep in touch and get information with mantis related tasks in coming weeks.

Good luck to all.

5 comments:

  1. hi sir.my name is vamsi krishna .i just completed my mca and learned php from an institute. and got job in a company .my manager gave me mantis bug tracking system and asked me customize it and prepare as query management tool.

    i gone through the code it is very harder to understand .please help me for my existence in job

    ReplyDelete
  2. Hi..vamsi

    For Query Management Tool, there is an exellent software name "phpmyadmin". You should use the right tool for the purpose.Why you want to customize mantis bug tracker for this ?
    plz explain about your real requirement..

    ReplyDelete
  3. Comfortabl y, the post is actually the sweetest on this deserving topic. I concur with your conclusions and will eagerly look forward to your upcoming updates. Saying thanks will not just be adequate, for the phenomenal lucidity in your writing. I will right away grab your rss feed to stay informed of any updates. Pleasant work and much success in your business endeavors!

    software defect tracking system

    ReplyDelete
  4. Great post! Works perfect for me!! Thanks!

    ReplyDelete
  5. This looks awesome. I would really like to implement in order form of my website which I actually needs..!!

    ReplyDelete