Forums

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

Can I automate to clone a task from one project to another and create subtask at the same time?

Md. Abrarul Huda
Contributor
June 19, 2024

I have an automation running to clone a task from one project to another when status is changed. Can I also create a sub-task for the clone in the same process?

2 answers

1 vote
Trudy Claspill
Community Champion
June 19, 2024

Hello @Md. Abrarul Huda 

 I believe that you can.

After the Clone Issue step add a Branch -for each Related issues / most recently created issue. That should shift the context to the issue created by the Clone action. Then you can add a Create Subtasks action inside that branch.

Md. Abrarul Huda
Contributor
June 19, 2024

I can't seem to do it after cloning between 2 different projects. If I add a transition inside one project, it works perfectly. But after I have moved to a different project I got "Issues with this Issue Type must be created in the same project as the parent. (project)" error.

Trudy Claspill
Community Champion
June 19, 2024

Please paste screen images showing the current state of your rule, and all the details from the Audit Log for execution of the rule.

Also on the Rule Details page what have you set as the Scope of your rule?

Md. Abrarul Huda
Contributor
June 22, 2024

Attaching 2 screenshots. I guess the problem is visible. But how to solve it is the issue.Screenshot 2024-06-23 093743.pngScreenshot 2024-06-23 093655.png

Trudy Claspill
Community Champion
June 22, 2024

I notice that while you said you are coming an issue, you are actually using the Crest issue action instead.

Please share the details of the step where you are creating the subtask.

Additionally what is the scope of the rule specified on the Rule Details page?

Md. Abrarul Huda
Contributor
June 22, 2024

I was initially cloning an issue. But then I tried the create new issue action.

Screenshot 2024-06-23 122448.pngScreenshot 2024-06-23 122557.png

Trudy Claspill
Community Champion
June 23, 2024

You need to implement the solution I detailed in my first response - use of a For Each branch after you create the new parent issue. The add the step to create the subtask as a subordinate step in that branch.

In your current implementation you are setting the parent of the subtask to Current Issue which, in this case, is a reference to the trigger issue rather than the issue you just created. You have to use a Branch to shift the focus to the newly created issue.

You may also need to change the scope of the rule to be multiple projects and list the project that contains the trigger issue and the project where you are creating new issues.

0 votes
Clara Belin-Brosseau_Elements
Atlassian Partner
June 21, 2024

Hello @Md. Abrarul Huda 

 If you're seeking for an easier way to clone an issue on a status change with their sub-tasks, you can try our app Elements Copy & Sync that allows you to clone and sync issues with all their content (summary, description, custom fields, comments, attachments, etc.) and their child issues.

 

You can check our guide here.

 

You can try the app for free during 30 days (and it stays free under 10 users).

Kind regards,

Clara

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events