Hello,
This article helped me create a manual Automation Rule to clone epics with its child issues.It's a really useful way to do something a lot of my users have been asking for.
However I would also like to edit the summary of the cloned issues. Each issue starts with a prefix and version. And I'd like to increment the version of the cloned issues.
An example if my epic and child have this as a summary :
ABC 2.1 Epic
ABC 2.1 Child issue 1
ABC 2.1 Child issue 2
I'd like the summary of the cloned epic and cloned child issues to be :
ABC 2.2 Epic
ABC 2.2 Child issue 1
ABC 2.2 Child issue 3
How can Jira Automation help me do this?
Thank you!
Without seeing your complete rule for context...
Where is the number value you want to increment? It appears to be part of the Summary of the first issue (i.e., the Epic) to be cloned.
In that case, you could use text functions, such as match(), to extract the value from the Summary, save it in a variable, and then use math functions to increment it for updating in issues. Please look here to learn the functions to support doing this:
Kind regards,
Bill
Hi Bill,
This is what I used for my variable block that I called X :
{{{{issue.summary.substring(7,8)}}.asNumber}}.plus(1)
And this is what I used for the summary of the clone epic block :
{{issue.summary.replace({{issue.summary.substring(7,8))}},{{X}})}}
I'm new with smart values as you can tell, am I using the right format?
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have some extra curly brackets in that expression to get the number:
{{issue.summary.substring(7,8).asNumber.plus(1)}}
To combine that with the other value, grab the left part first, followed by the number, and then followed by the right part:
{{issue.summary.left(6)}}{{issue.summary.substring(7,8).asNumber.plus(1)}}{{issue.summary.substring(9,issue.summary.length())}}
These assume a fixed format for the Summary.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Hakim Belkouch
It sounds like you're looking for a streamlined solution to clone and modify epics and child issues while also incrementing values within summaries. Our app Deep Clone for Jira could help simplify your workflow. It allows you to clone issues along with their child structures, while you could configure adjustments like replacing the version in your summary in combination with the Field Editor feature.
This might save you some effort, especially for bulk or frequent cloning tasks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Hakim,
maybe this article could help you.
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.