Use case
Sometimes resolving issues depends on fields set to a specific value. In this case, the issue is automatically resolved and transitioned to "Done" when all options of the checkbox custom field are ticked.
⚒️ Configuration
Field changed event
Create a new rule and name it appropriately.
Providing a description will help you to identify what the rule does but this step is optional.
Add a Trigger → Field changed event
Field
Choose your checkbox custom field
Changed to
Choose Any value
No further configuration needed. The automation rule is triggered every time an issue is being transitioned.
Boolean condition
Add Condition → Boolean condition
Use the following Parser Expression:
numberOfSelectedItems(%{trigger.issue.c11500}) = numberOfAvailableItems(%{trigger.issue.cf11500})
#Replace field code with the field code of your custom field. Use the field dropdown to automatically insert the field code
-
cf11500 is the field code for the custom checkbox field. The field code will differ in your instance.
-
numberOfSelectedItems() and numberOfAvailableItems() are functions that can be used with any selectable field.
Transition issue action
Add Action → Transition issue
Mode
Choose Transitions to status
Status
Choose Done
The target status has to be reachable from the current status, otherwise, the action will not be executed.
Enable the rule by clicking on the Enable button
📹 Screencast
This is how the configuration above should look on your screen
📤 Import the example
Import the JSON file below to get started in no time.