Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How i clone the status of the subtasks from the parent that i cloned before?

David Garcia November 6, 2024

I show that: 

https://confluence.atlassian.com/jirakb/automation-how-to-clone-tasks-stories-along-with-their-sub-tasks-1235853548.html

But i need to clone the status of the Subtask too.

How i clone the status of the subtasks from the parent?

 

Thanks

2 answers

0 votes
David Garcia November 27, 2024

Nobody knows if this feature is possible?

0 votes
Salih Tuç
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.
November 6, 2024

When you "Clone" an issue, it means that you are creating the issue with the same status and other fields.

So, in the guide, the steps are:

  1. Clone the issue and save the cloned issue's key
  2. Clone the childrens (sub-tasks) of the issue and set the first cloned issue (the task) as their parent

Thus, if you use same configuration in the document, childrens (sub-tasks) should be cloned with their statuses.

David Garcia November 6, 2024

Hi, thanks for your answer.

Subtasks that are cloned are set to the first possible state defined in the state flow and do not respect the state they were in in the parent.

Salih Tuç
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.
November 27, 2024

Can you please try the steps in here?

Step 1: 

Clone the parent issue using the Clone Issue action component. Choose the destination Project and an Issue type in that destination project.

Step 2:

Create a variable to store the cloned issue key into it. This is necessary because this automation rule will potentially end up creating multiple subtask clones as well. 

Without a variable to store the first parent issue's cloned key, subsequent cloned subtasks will change the value of smartvalue {{createdIssue.key}} during the execution.

Step 3:

Add a branching step to work on the Sub-Tasks and choose the sub-task issue type for the 'Type of related issues' field.  In Jira Cloud, you can also choose 'Children', this relationship represents subtasks in this context as well.

Step 4:

  • Under the 'For Sub-tasks' (or For Children) branch add a Clone Issue action.
  • Choose the destination Project and the issue type as sub-tasks issue type in the destination project.
  • Now, for the 'Parent' field manually type in the smart value {{cloneparent}}
  • This will make the issue cloned in Step 1 as the parent issue for the sub-tasks cloned now.

Step 5:

Save and Publish rule.

Suggest an answer

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

Atlassian Community Events