The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

9 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 # people like this
2 votes
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 Champions.
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

got it

DEPLOYMENT TYPE
SERVER
VERSION
8.8.1
TAGS
AUG Leaders

Atlassian Community Events