Hey Team,
I am having some troubles making an automations.
#1 - I want to make a button (manual trigger) to clone an issue type 'task' and all of its sub issues / child items. Can someone help with steps, currently mine is only cloning parent.
Thanks,
Hi @Jacob Hanson ,
I've elaborated the two options below. One is with the Deep Clone app and a post function, the other is based on Automation for Jira.
Deep Clone post function
Take a look at the gif below. I've mad a step-by-step instruction.
Clone tree with Automation for Jira
You don't need an app for this. But you need to create two rule.
Rule 1
Use a manual trigger and 'Prompt for input when this rule is triggered'. Call it Prefix with a Default value 'Clone - ' (without the quotes) and a var name prefix.
Clone the issue/create issue and copy every field from current issue that is needed, use this as summary:{{userInputs.prefix}}{{issue.summary}}
Then add a send web request action use as web request URL the one you will create in rule 2. Append ?issue={{createdissue}} to this URL.
Use Post as method and add this custom date:
{
"prefix":"{{triggerissue.prefix}}",
"clonekey":"{{issue.key}}"
}
Check Delay execution of subsequent rule.
Rule 2
Use as trigger an incoming webhook, copy the URL and use that in rule 1, don't forget to append the string mentioned earlier. It should look like this:
https://automation.atlassian.com/pro/hooks/8dda01c81a2ef4cf53c4ab0b008b3d2df281c68d?issue={{createdissue}}
Add a branch for JQL / related issue. Use JQL: parent = {{webhookData.clonekey}}
In the branch create issue. Copy every field from current issue that you need. Use as summary: {{webhookData.prefix}}{{issue.summary}} and add Parent field with Trigger issue as content.
Add a send webrequest which need to be exactly the same as in rule 1
The button to trigger this will appear in the action menu of an issue. This will create a clone of the parent. The rule will also trigger the second rule which will create the children of the first rule, but will also create all issues further down the hierarchy. It is up to you to decide which fields need to be cloned.
Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Rudy Holtkamp thank you for providing a great guide for using our new Epic/Tree Post Function 😊
@Jacob Hanson Let me know if you have any questions regarding using Deep Clone. You can find also more information in our documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The easiest way is to install Deep Clone.
Since you are on a free plan (10 users or less), the app is also free.
But if you want to do it yourself using Automation for Jira, you can make the following rule, to clone Epics and the children.
The idea is:
1. Create the clone of the parent
2. Branch to all it's children
3. Create a clone of each child, using the clone parent key in the Parent field.
The shown automation is only for two levels deep clones. If you want to add sub-tasks, it is a bit harder. Which is not explained in a few minutes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a ton, I will look into both options and go from there.
Appreciate your in depth help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Rudy Holtkamp
Deep clone is perfect for an administrator, however I am trying to make a user friendly button to clone it all, is there a way to put deep clone into a workflow or do I need to make the branch workflow?
I have 2 templates with 10 plus child issues that will regularly need to be cloned. I need something faster, any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will reply tomorrow.
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.