Forums

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

How to use a newly created issue key in smart-value completions in Automation for JIRA ?

Chander Korshika
Contributor
August 16, 2020

How to use a newly created issue key in smart-value completions in Automation for JIRA ?

Im trying to cloning an issue using the custom script in another project and sending out an email with new issue key to certain users but while sending an email ..im not able to reference the new issue key .I have used below values but its not working its always pulling the current issue from which im cloning rather than new issue key which i want ,as i want to send email with new key.

{{createdIssue.key}}

{{issue.key}}.{{key}} 

{{key}}

Please suggest me thanks in advance.

Chander Korshika

3 answers

2 accepted

8 votes
Answer accepted
Akhil Mishra
Contributor
June 28, 2021

Hey Chandar, I would advise using {{createdissue.key}}. This will give you the new key that is created run time in Jira automation. Hope this helps.  

Łukasz Zawer
Contributor
July 8, 2021

Alternatively if you create more than one (even in Branch-rule):
createdissues.get(0).key - for first
createdissues.get(1).key - for second

etc.

Like 2 people like this
1 vote
Answer accepted
PhilSpo
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 18, 2020

If its an inward link use:

 

{{issue.issuelinks.inwardIssue.key}}

 

just change it if its the outward one.

 

 

Phil

roberto.mory June 15, 2022

Muito bom...

0 votes
Chander Korshika
Contributor
April 21, 2024 edited

got it

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.8.1
TAGS
loom essentials certification, loom training, get certified in loom, atlassian certification, loom async video, video messaging skills, atlassian learning, loom for teams, online certification, loom badge, loom for business, atlassian education

Get Certified in Loom! 🧑‍🎓

Time to up your Loom game! The new Loom Essentials Certification is here! Show off your skills, learn pro tips, and get officially recognized. Perfect for taking your video messaging to the next level.

Learn more
AUG Leaders

Atlassian Community Events