Jira Automation のブランチ
When configuring automation rules, it's possible to create a separate section of the rule and perform actions on related issues - this is referred to as branching. Below you’ll find the types of branches available in Jira Cloud automation. To learn more, see What is rule branching?
関連する課題
関連する課題ブランチでは、ルールをトリガーした課題に関連する課題に対してアクションを実行できます。たとえば、課題が [完了] に移動したときにトリガーされるルールがあれば、その課題のサブタスクにコメントを追加します。
作成済み課題にアクセスする
Rules can create issues using the Create issue and Clone issue actions. Performing further actions, such as adding a comment or creating sub-tasks, on these newly created issues within the same rule requires a related issue branch.
This is because the main branch of a rule always applies to the trigger issue, not the created issue. For example, adding a Comment on issue action after a Create issue action adds a comment to the trigger issue, not the created issue.
To address this, create a new branch for All created issues to allow you to action newly created issues.
Alternatively, you can use the Related issues condition (Most recently created) if you the only need to action a single issue.
ブランチ実行の順番を付ける
複数の課題 (4 件のサブタスクなど) に対するブランチは同時に実行され、必ずしも次のブランチの開始前に前のブランチが完了するわけではありません。そのため、ブランチ間の変更に依存することはできません。
複数の課題上のブランチは新規プロセスとして実行され、メインブランチはサブブランチが開始するまで実行を続けます。
高度な分岐
高度な分岐を使用すると、スマート値を入力して、その値に対してオブジェクトとしてアクションを実行できます。たとえば、スマート値 {triggerissue.comments.body} を入力すると、課題に関する各コメントに対してブランチがアクションを実行できるようになります。
また、これを使用して、受信 Webhook や Web リクエストからのレスポンスによく見られる JSON 配列をループ オーバーすることもできます。この Web リクエストを JSON レスポンスとして見なします。
{"success":true,"myList":[{"id":3,"name":"Smith","myValues":[1,2,3]},{"id":4,"name":"Wong","myValues":[5,2]}]}
これで、スマート値 {{webResponse.body.myList}}
を入力できます。これにより、ブランチは各リスト要素に対してあらゆる条件やアクションを実行できます。以下に例を示します。
AQL
Jira Service Management でのみご利用になれます。AQL でブランチを作成すると、スキーマを選択して AQL クエリを入力し、クエリによって返されたオブジェクトに対してアクションを実行できます (オブジェクト最大 50 個まで)。
When configuring actions, you can access the details of each object using the {{object}} smart value. Learn more about Asset smart values.
この内容はお役に立ちましたか?