When cloning an issue with Jira Cloud Automation, how can I get the new issue key?

Cash Coyne
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.
February 8, 2024

When cloning an issue with Jira Cloud Automation, how can I get the new issue key?

I am able to clone an issue in automation, but after that step, I want to get the issue key so I can use it for subsequent steps in the same rule.  How can I do that?

3 answers

1 accepted

3 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 8, 2024

Hello @Cash Coyne 

After executing a Create Issue action you can access that issue with the {{createdIssue}} smart value.

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--createdIssue--

 

Bill Sheboy
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.
February 8, 2024

Hi @Cash Coyne 

As Trudy notes, the {{createdIssue}} is the one most recently created in the rule...most of the time.  There are cases where that will not be the case, such as with issues created within a branch.

I recommend posting an image of your rule; that will provide context for the community to confirm if it will work as you are asking.  Thanks!

Kind regards,
Bill

Like Trudy Claspill likes this
Cash Coyne
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.
February 9, 2024

Thanks for the {{createdissue}} smart value. I wasn't aware of that.

0 votes
Aaron Pavez _ServiceRocket_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 8, 2024

Hi @Cash Coyne 

Do you want to get the Jira issue while WHILE running the automation?

Or after the Jira issue has been cloned?

Do you have a screenshot of the automation?

Regards

0 votes
Dan Breyen
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 8, 2024

Hi Cash, here's a list of Smart Values for issues. jira-smart-values-issues 

I'm not an automation expert, but without seeing your current Automation, With the 'Clone Issue' Action, it looks like you should be able to use {{issue.key}} Smart Value to get that info.

Hope that helps.

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events