Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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 Nov 18, 2020

Hi Jaime,

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

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 Nov 18, 2020

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

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 Nov 19, 2020

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

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 Nov 20, 2020

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

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

John Funk Community Leader Nov 23, 2020

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

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 Nov 30, 2020

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

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 Dec 03, 2020

Can you post the most recent rule as well? 

Hi John.. I sure can

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

John Funk Community Leader Dec 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
Site Admin
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,121 views 8 28
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you