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

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

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

0 votes

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

Submit your Jira Service Management use case and win!

Hi everyone - in case you haven’t heard, we’re hosting the show of the century on November 10th: High Velocity: ITSM World Tour.     This virtual, concert-themed experience...

317 views 1 11
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