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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

25,076 views 2 7
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