Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Clone task and sub-task from an existing Project with Automation

Shirley Wee March 22, 2023

I would like to clone task and sub-task from an existing Project with the condition that the Project Category is Project Management. 

 

I tried to set up this Automation but it seems to have an issue cloning task over to the target Project.

jira.JPG

1 answer

0 votes
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.
March 24, 2023

Can you provide the details from the Audit Log for an execution of the rule?

Shirley Wee March 26, 2023

Here is the details from the Audit Log:

 audit log.JPG

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.
March 27, 2023

Can you show us the details of the Clone Issue actions?

Is this project a Company Managed project or a Team Managed project? That information will show at the bottom of the navigation panel on the left when you are viewing the project.

Is the project a Software, Service, or Work Management project? If the navigation options are displayed horizontally across the top of the screen (i.e. List, Board, Calendar, Timeline, etc.) then it is a Work Management project.

Based on your first For JQL branch it seems like you might be trying to clone multiple Tasks and their sub-tasks. Is that true?

Shirley Wee March 27, 2023

The project is a Team Managed Project in JIRA Work Management. I am using automation to clone multiple tasks and their sub-task from one project to another project. I have also tried a new automation rule and managed to clone the Task but not the sub-task due to an error when cloning "Issues with this Issue Type must be created in the same project as the parent. (project)")

Shirley Wee March 27, 2023

Clone Task.jpgClone Sub-task.jpg

Automation.jpg

Error encountered:

error.jpg

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.
March 28, 2023

Are both the source and destination projects Team Managed?

Does the Rule Scope name both the source and destination projects?

The original error could've come about because in Team Managed projects all the configuration elements have unique identifiers. In the Clone task if you selected Task for the issue type before you selected the destination project then the rule would be picking up the ID (10002) for a Task issue type from the source project. The ID for the Task issue type in the destination project would be different. With Team Managed projects you need to select the destination project first, then the issue type.

 

Regarding cloning subtask into a Story in a different project, I'm sure that has been discussed before in community posts. I will see if I can find the relevant posts and add the links here.

I think it involves

1. creating a variable to hold the ID of the new Story you created through cloning.

2. Cloning the subtasks, but leaving them cloned into the same original issue.

3. Editing the subtasks created by cloning to change their Parent Link to be the issue ID of the new Story you created through the previously cloning step.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events