Add conditions to an automation rule
In automation, conditions are checkpoints in a rule that test whether specific criteria are met. If the test fails, the rule stops running.
For example, let's imagine your rule is set to trigger when a new page is published. You could add a User condition so the rule only runs IF the page was published by a specific person.
Configuring conditions
To run the test, conditional criteria must be defined as a comparative statement using relative operator values. This allows the rule 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.
Relative operator | Jira examples | Confluence examples |
|---|---|---|
equals |
|
|
not equal to |
|
|
contains (text match) |
|
|
does not contain |
|
|
is less than |
|
|
is greater than |
|
|
is less than or equal to |
|
|
is greater than or equal to |
|
|
Add more than one condition
You can make the test even richer by adding consecutive conditions with logical operator values. This allows the rule to assess the conditions together.
The condition returns a True or False result (known as a boolean evaluation, deciding whether to continue or branch in the automation flow.
Logical operator | Jira examples | Confluence examples |
|---|---|---|
True only if both are true |
|
|
True if either is true |
|
|
Exactly one must be true |
|
|
True if the condition is not true |
|
|
When to Use AND vs. OR
Understanding how to combine multiple conditions logically is important for accurate rule behaviour.
Use
ANDwhen all of the specified conditions must be true in order for the rule to continue. For example:Issue Status = “In Progress”ANDPriority = “High”→ Only issues that meet both criteria will proceed.
Use
ORwhen you want the rule to continue if any one of the specified conditions is true. For example:Issue Type = “Bug”ORIssue Type = “Task”→ Issues of either type will continue.
Clarifying guidelines
If your conditions are mutually exclusive (they cannot both be true simultaneously), use
OR. For example, an issue can’t be Done and Cancelled at the same time:Status = “Done”ORStatus = “Cancelled”(an issue can’t be both at the same time).
Why this matters
If you inadvertently use AND when only one of several conditions needs to match, you’ll block valid cases. Conversely, using OR when you truly need all criteria may allow unintended cases through.
Was this helpful?