Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automating emails on transition of a ticket

sergey_anyvisa_co_uk September 17, 2020

Hi All,

I am setting up some automations in JIRA when an issue is progressed through its workflow.

Whenever an issure is transitioned to status PO Input I want the issue to be assigned to one of the POs from the PO group and then send them an email with some text. This is what the rule looks like:

Annotation 2020-09-17 152050.png

When an issue is transitioned, I get this error: Could not send email, the 'To' address field is empty. If you have referenced a field it may be empty. The user who is assigned the issue is me and my profile does have an email address. I get a feeling that the rule progresses the actioned in reverse: first it tries to send the email and them assign the issue to me. 

I would greatly appreciate if someone points me to what I am doing wrong.

Thank you

3 answers

1 accepted

0 votes
Answer accepted
John Funk
Community Champion
September 17, 2020

Hi Sergey - Welcome to the Atlassian Community!

Try putting a new action for Re-fetch issue before the email. It is probably as Jack suggests that the assignee is not getting fully set before the email goes. 

sergey_anyvisa_co_uk September 18, 2020

Inserting the Re-fetch issue action just before the email action seemed to have worked.

Thank you John

Like John Funk likes this
1 vote
Jack Brickey
Community Champion
September 17, 2020

theory...

i think the issue is that the assignee is still empty when it hits the email leg. I think until the automation is fully executed the assignee isn't complete.

test...

separate the automation into two rules: assign, then email the second triggered by the first.

sergey_anyvisa_co_uk September 18, 2020

That's what I was thinking. Though I must be mistaken and asked here. Glad I did.

Thank you

0 votes
Gökçe Gürsel {Appfire}
Atlassian Partner
September 17, 2020

Hi @sergey_anyvisa_co_uk ,

Edit: Tried changing the placement of send email action to the top of assign issue action to test your theory. However, Jack's suggestion seems to way to go.

Cheers,

Gökçe

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events