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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

727 views 6 13
Read article

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