How can I send notifications to an email address based on Issue Type?

I want to be able to send a notification to an email address based on an issue type for a project. At first I thought I could just copy my workflow and associate multiple workflow schemes that had been associated with different issue types, though I can't seem to get more than one workflow scheme associated with a project, actually I can get two but one ends up being the default JIRA and the last one that I assigned.

Now I'm thinking I may have to resort to some sort of groovy script to do it.

2 answers

In your current workflow add transitions specific to issue types (you can use condiitons to differenciate transtions specific to issue type)

Then in that particular transtion you can use post functions to specific email address - this should be the simple

That would turn a fairly simple workflow into a very complicated one I think. Since each transition would then need to be duplicated for each of the issue types in question.

It would, but it will do the job you need.

If you want to do it in Groovy, that will work too, but you'll need to subvert much of the email system (i.e. don't send any events that trigger emails via notification schemes, and do it all in your workflow functions, with lots of "if transition X then send mail Y" type things)

Hi,

I created this plugin: https://marketplace.atlassian.com/plugins/net.koncis.atlassian.issue-type-notification-schemes/server/overview

By defining notification schemes as usual, you can create (with the plugin) issue type notification schemes, and thereby map issue types to notification schemes. 

For instance, Stories goes to project leader, bugs to Support Team, and so on.

I hope that helps you all.

Please let me know if you find any problems using it.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

27,074 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you