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

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

Chander Korshika 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

2 answers

1 accepted

6 votes
Answer accepted
Akhil Mishra 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 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.

0 votes
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...

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.8.1
TAGS
AUG Leaders

Atlassian Community Events