自動化ルールとコンポーネントの新しい用語

自動化の「ルール」は「フロー」に、「コンポーネント」は「ステップ」になりました。この変更を行っている間、ドキュメントの一部に用語の不一致が発生する場合があります。自動化に関する最新情報の詳細をご確認ください。

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 の例

= と等しい

Priority = High

Space = ["space name"]

!=と等しくない

Assignee != Empty

Author != ["person's name"]"

~ を含む(テキスト一致)

Summary ~ "urgent"

Body text ~ "confidential"

!~を含まない

Description !~ "deprecated"

Page title !~ “Draft”

<未満

Due date < {{now}}

{{page.dateLastUpdated}} < -90d

>より大きい

Story points > 8

Page word count > 1000

<= 以下

Created <= -1w

{{page.totalViewsCount}} <= 50

>= 以上

Time Spent >= 3h

{{inactivePages}} >= 100

複数の条件を追加

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 の例

AND

 

両方が true の場合のみ true

Priority = High

AND

Assignee != Empty

Space = "HR"

AND

Label = "Policy"

OR

 

いずれかが true の場合は true

Assignee = currentUser()

OR

Reporter = currentUser()

Page label = "urgent"

OR

Space key = "LEGAL"

XOR

 

1 つだけが true である必要があります
(自動化では稀)

(A = true XOR B = true)

Page status = "In Progress"

XOR

Page status = "Draft"

NOT

 

条件が not true 場合に true

NOT

Status = "Done"

NOT

title ~ "Archived"

 


ANDOR の使い分け

Understanding how to combine multiple conditions logically is important for accurate flow behaviour.

  • Use AND when all of the specified conditions must be true in order for the flow to continue. For example:

    • Issue Status = “In Progress”

    • AND

    • Priority = “High”

      • 両方の条件を満たす課題のみが進行されます。

  • Use OR when you want the flow to continue if any one of the specified conditions is true. For example:

    • Issue Type = “Bug”

    • OR

    • Issue Type = “Task”

      • → どちらのタイプの課題も継続されます。

ガイドラインの明確化

  • 条件が相互排他的(同時に両方が true になることがない)場合は、ORを使用します。たとえば、課題は完了とキャンセル済みを同時に設定することはできません:

    • Status = “Done”

    • OR

    • Status = “Cancelled”(課題は同時に両方になることはできません)。

これが重要な理由

複数の条件のうち 1 つだけが一致すればよい場合に誤ってANDを使用すると、有効なケースをブロックしてしまいます。逆に、すべての条件が本当に必要な場合に OR を使用すると、意図しないケースが通ってしまう可能性があります。

さらにヘルプが必要ですか?

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