Plug a custom notification template in a plug-in

Tam Nguyen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2011

Are custom notification templates plugable? i want to make my plug-in more configuration independent, so i don't want to manually modify Jira core. It was impossible to put custom templates in plug-in but how a bout new version?

1 answer

0 votes
Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2011

I don't think you can make the templates 'alone' pluggable, however, the overall idea isn't impossible. You could put an event listener in your plugin, to catch the custom event and provide user (admin) plugin configuration support to modify the template which you can take on responsibility for rendering. I achieve this kind of configuration in the Brightidea JIRA Connector (see config screen). Your code would have to render your template, create an Email, locate a SMTPMailServer and send it. Naturally whne you update your plugin you'd need to manage updating the template...

Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2011

customization vs development vs manual effort, always a trade off!

Tam Nguyen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2011

Thank you Andy, actually i thought about that solution as well, but it takes time and effort to implement. At the mean time i think i should do manually.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events