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?
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--
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the {{createdissue}} smart value. I wasn't aware of that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.