How do I send a notification based on custom issue type?

I've looked at https://confluence.atlassian.com/display/JIRAKB/How+To+Send+Notifications+By+Issue+Type and https://confluence.atlassian.com/display/JIRA/Adding+a+custom+event, which is very helpful. But the Events seems to be targeting issue event (issue create, issue updated, etc) vs issue type (Bug, New Feature, etc). Please let me know if it is possible to send out notifications when a certain issue type, like when a Bug or New Feature is created, not on issue events. Thanks in advance.

3 answers

1 vote

Yes and no.

There are two types of thing you can to to an issue.

  1.  An action - these update the issue in some way, but do not move it on in the process (workflow).  Editing an issue, commenting on it, reassigning it, cloning, deleting, logging work, etc.  These actions have nothing to do with the type of the issue, they apply to all issues.  The can be allowed/prevented by permissions and so-on, but they do the same thing - an edit is an edit, a worklog is a worklog...
  2. transition - these change the status of an issue.  Including "issue does not exist" -> "issue is new".   A workflow is a description of all the possible transitions.  The workflows can be set by project and issue type, and every transition has a "fire event" post-function.  So you could define different workflows that fire different events for "issue created" for each different case you need.

 

 

Nic is correct in his explanation.  Another alternative is to set up a filter that looks for new issues of a specific type created in the past "x" minutes.   Run a subscription at that same (or shorter) interval and you can get an email sent when those new issues appear.   But it is not an immediate notification (as is Nic's transition suggestion)

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 Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

147 views 1 10
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