This question is in reference to Atlassian Documentation: How To Send Notifications By Issue Type
This article speaks about custom event for "create issue" action only, but we are looking for triggering custom-events for generic actions like Edit, Assign or Comment for particular issue-type only, ex., Bug., which are not controlled through a workflow
Those events are hard coded. When you edit issues, an issue-updated event goes out, when you comment, you get issue-commented, and so-on.
You can associate different users with the different events to get emails. But the edit/assign/comment etc actions will always fire the same events.
Sorry, I did not explain that too well. I said the events for issues are hard-coded. I mean the events outside the workflow (edit, comment, log work, etc). There's nothing you can do with those, the issue type is irrelevant.
Create, and the other events triggered in the workflow are customisable - if you have a workflow for bug, and another one for features, you can fire totally different sets of events.
The other thing that might be worth a look - editing the outgoing emails - if you're on server, it's really easy to add "#if (issuetype = x)" type blocks of code to them.
The last suggestion sounds interesting and workable. Kindly provide more details on how to add these conditions for outgoing emails on the server-side.
On the other side, does Atlassian have a plan to introduce issue-type wise Notification Schemes, just like the Workflow Schemes wherein different workflows can be mapped to different issue-types?
There's a good write up of editing email content at https://confluence.atlassian.com/jira/customizing-email-content-185729653.html
From memory, you probably need to insert things like
#if ( $issue.getIssueTypeObject().getName == "Bug")
do stuff for bug emails
all the body of the original template
Some of those calls might be wrong, I haven't memorised the API in full, and there may be better ways to write it, but it should get you started.
Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...
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!
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