Jira Automation: How to reference a newly created issue key in an email

Jaime Brian November 18, 2020

Hi

I have setup an automation that when a Story is created an email is sent and I want to display the issue.key of the newly created story in the subject and body of the email.  I have found on the community pages that I should do a branch.  Below is what I have done however No email is being sent.  

Screen Shot 2020-11-19 at 10.48.43 am.png

The audit trail of the rule shows it was success but it states no related issues were found.  Yet the issue was created. 

 

Screen Shot 2020-11-19 at 10.51.11 am.png

 

What am I doing wrong?

1 answer

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 18, 2020

Hi Jaime,

Try adding a New Action for Re-fetch issue before the Branch.

Jaime Brian November 18, 2020

HI John, thank you for your quick reply.  I have added before the branch as you have suggested and I still didn't get an email.  Below is a screenshot of the audit log of the test.  Do you have any other ideas?

Screen Shot 2020-11-19 at 11.04.12 am.png

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 18, 2020

What is in the Branch rule? That's what's failing. And actually, why do you even have a branch?

Jaime Brian November 18, 2020

I originally setup the automation to create a story and then send an email.  The users responded stating they would like more information in the email.

The Acceptance Criteria of the Story I am working on is

  1. The email should include in the body and subject the Issue key of the story that was created by the automation
  2. The email should include in the body the Issue URL of the story that was created by the automation

When I first started working on the solution I merely added {{issue.key}} and {{issue.url}} to the email however that only had the details of the parent item.  I searched the community pages and found a solution that suggested using a branch item.  I added that using 'all created issues' however now the email is not happening.

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 19, 2020

Can you post the full rule? I only see the part starting with a Condition. 

Jaime Brian November 19, 2020

Hi John

Here is the full rule.  Thanks for helping.

Screen Shot 2020-11-20 at 9.56.14 am.png

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 20, 2020

Try changing the branch to Most Recently Created Issue instead of the All Created Issues that you have. 

Jaime Brian November 22, 2020

Hi John, I tried your suggestion and unfortunately it did not work.  

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 23, 2020

Can you share the latest? And what did not work?

Jaime Brian November 23, 2020

Hi John

I am expecting an email to be sent to the nominated email address.  and that email should include the issue.key and issue.url of the newly created story, not the parent issue.   The email is not being sent at all.  

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 30, 2020

Can you post the Audit log for when you executed and it didn't send the email? 

Jaime Brian November 30, 2020

Hi John

Here is the screenshot of the Audit as request.

Screen Shot 2020-12-01 at 9.51.49 am.png

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 3, 2020

Can you post the most recent rule as well? 

Jaime Brian December 10, 2020

Hi John.. I sure can

Screen Shot 2020-12-11 at 2.58.54 pm.png

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 11, 2020

And can you post the audit log for this new rule for when you run it? I assume it still does not send the email?

Suggest an answer

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

Atlassian Community Events