Script runner - Fire an event when condition is true - no email for project role members

Hi there,

I've created a post function "Fire an event when condition is true" for issues with major priority. The fired event is part of my notification scheme and emails should be sent to the project lead and all the people in a certain project role. But only the project lead gets an email. How can I send the emails to the role members with this function? Or is it a bug in Script runner?

 

Thanx

Alexander

2 answers

Are u trying to send the email with the scirpt post function or with JIRA event notification?

In case you are using script post function (send email) , try to use the project role ID instead of NAME

As mentioned the post function fires the event (called Blocker). Blocker is part of the notification scheme and email should be send to the project lead und the role "Product Owner". But the role members don't get that email.

It's too early to say it's a bug. What troubleshooting have you done so far? Here are some points I think you can check:

  • How sure are you that the condition has passed? The email being sent to the Project lead maybe because of other events in the post-function. Check if there are others.
  • Where is the Event positioned in your post-function? It should be on the bottom most (after several important post-functions)
  • What is the template being used by your Event? Is it valid?

Let us know so we can advise more if we can.

Thanx Gabrielle, - the conditon is true: the email to the project lead was sent. Further I activated logging and can see the result in the catalina.out. - the event is positioned at the bottom of all post function - the template I've tried is the "Issue created" template which is valid. I did some further investigations: I've put the project lead, a project role and a group into the notification scheme for this event. Only one mail was sent to one of the group member. Strange.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,011 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot