Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,353
Community Members
 
Community Events
165
Community Groups

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

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

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.  

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

etc.

If its an inward link use:

 

{{issue.issuelinks.inwardIssue.key}}

 

just change it if its the outward one.

 

 

Phil

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.8.1
TAGS
Community showcase
Published in Jira Service Management

Improving the Create Issue Experience in Jira Service Management Cloud

Hello everyone!  We are very excited to announce some much needed changes to the issue create experience in JSM (the blue "create" button) at the top of the screen.  We have just starte...

121 views 6 2
Read article

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