Groovy - fire an event based on type & reporter


I'd like to fire an event based on two conditions:

1. the type of the issue (bug, story, epic, etc.)

2. the group that the reporter belongs to (jira-users, jira-developers, mine-managers, mine-qa-hw, etc.).

How do I achieve this?



1 answer

1 accepted == "MyIssueType" &&

But if you allow anonymous creation of issues check you have a reporter, otherwise you'll may get an NPE.


Where do I put this code?

I have 8 groups and for each bug I'd to be send notification to the appropritae group (according to the component). How do I fire such an event?

Is there an easier way to send a notification to the group which the Component Leader is part of?

i.e. If QA open a bug (or other issue type) woth componenet Hardware, I want a notification mail will be sent to the group where the Hardware Leader belongs to.
Assuming the Component Leader assigned to multiple groups, is it still possible?



I'd just write a custom post-function and hardwire the mapping of components to groups. The component leader will always be a part of multiple groups, eg jira-users, so doing it programatically would be messy.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,089 views 0 8
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