Add conditions to an automation flow
In automation, conditions are checkpoints in a flow that test whether specific criteria are met. If the test fails, the flow stops running.
For example, let's imagine your flow is set to trigger when a new page is published. You could add a User condition so the flow only runs IF the page was published by a specific person.
条件の設定
To run the test, conditional criteria must be defined as a comparative statement using relative operator values. This allows the flow to compare two things relative to each other.
The condition returns a True or False result (known as a boolean evaluation), deciding whether to continue the automation flow.
関係演算子 | Jira の例 | Confluence の例 |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
複数の条件を追加
You can make the test even richer by adding consecutive conditions with logical operator values. This allows the flow to assess the conditions together.
この条件は True または False の結果を返します(ブール評価と呼ばれ、自動化フローで続行するかブランチするかを決定します)。
論理演算子 | Jira の例 | Confluence の例 |
|---|---|---|
両方が true の場合のみ true |
|
|
いずれかが true の場合は true |
|
|
1 つだけが true である必要があります |
|
|
条件が not true 場合に true |
|
|
AND と OR の使い分け
Understanding how to combine multiple conditions logically is important for accurate flow behaviour.
Use
ANDwhen all of the specified conditions must be true in order for the flow to continue. For example:Issue Status = “In Progress”ANDPriority = “High”→ 両方の条件を満たす課題のみが進行されます。
Use
ORwhen you want the flow to continue if any one of the specified conditions is true. For example:Issue Type = “Bug”ORIssue Type = “Task”→ どちらのタイプの課題も継続されます。
ガイドラインの明確化
条件が相互排他的(同時に両方が true になることがない)場合は、
ORを使用します。たとえば、課題は完了とキャンセル済みを同時に設定することはできません:Status = “Done”ORStatus = “Cancelled”(課題は同時に両方になることはできません)。
これが重要な理由
複数の条件のうち 1 つだけが一致すればよい場合に誤ってANDを使用すると、有効なケースをブロックしてしまいます。逆に、すべての条件が本当に必要な場合に OR を使用すると、意図しないケースが通ってしまう可能性があります。
この内容はお役に立ちましたか?