-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Trigger - Scheduled
-
Minor
Issue Summary
When using the Scheduled trigger in Jira Automation with a JQL condition and only one work item matches the JQL, additional condition in the trigger is ignored.
Example
- Trigger: Scheduled
- "Run a JQL search and execute actions for each work item in the query." is enabled and set JQL
- Add condition in the Scheduled trigger
- Work item fields condition
- Field: Request type
- Condition: does not equal
- Value: <Set specific request type>
- Work item fields condition
- Action: Add comment to work item
For such rule, if only one work item matched the JQL condition, defined "Work item fields condition" is ignored. Even the work item does not match the "Work item fields condition", the subsequent action is performed.
Steps to Reproduce
- Create an Automation rule with the Scheduled trigger.
- Set a JQL condition in the Scheduled trigger to filter issues (so that only one issue matches).
- Add an additional condition inside the Scheduled trigger (e.g., Work item fields condition).
- Set an action to be executed if the conditions are met.
- Ensure there is only one issue in the project that matches the JQL but does NOT meet the additional condition inside the Scheduled trigger.
- Run the rule.
- Action is performed for the work item which does not meet the additional condition
Expected Results
The action should NOT be executed because the single issue does not meet the additional condition specified inside the Scheduled trigger.
Actual Results
The action is executed even though the single issue does not meet the additional condition inside the Scheduled trigger.
Workaround
Add condition outside of Scheduled trigger