Automation: How to clone tasks/stories along with their sub-tasks

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Cloud のみ - この記事は クラウド プラットフォームのアトラシアン製品に適用されます。

要約

Clone tasks/stories with their sub-tasks using an Automation rule.

環境

Jira Cloud

ソリューション

If you plan to use Automation for Jira to clone tasks, stories or any other standard issue types alone with their subtasks then please follow the below steps after choosing a trigger of your choice.

Step 1: 

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

Screenshot:



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.

In this example, the variable is named cloneparent.  By setting a smartvalue of {{createdIssue.key}} the first cloned issue will become the parent for all the subsequent cloned subtasks/child issues in the branching step.


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.

Screenshot:





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.

Screenshots:





Step 5:

Save and Publish rule.





最終更新日 2024 年 5 月 10 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.