Workflows: Validate Checklist before Issue Transition
You can prevent the Jira issue from transition to the next state if not all Smart Checklist items are checked. That's done by validating the Smart checklist progress Custom Field ā”ļø
Requires Smart Checklist Progress Custom Field ā "Smart Checklist Progress" Custom Field set up
āš¼ NOTE: Not available in Next-Gen projects. Workflow customization isn't available yet for Next-Gen projects. As of now, it is on the longer-term roadmap of theĀ Atlassian team. Therefore, transition validators are not available either.
Ā
Set up Validator
Go to Project Settings ā Workflows
Choose the Workflow you want to add validation to and click Edit:
Ā
Add Validator
3.1. Choose transition and click on the Validators link:
3.2. Add Validator:
3.3. Choose Regular Expression Check and click Add:
Ā
3.4. Choose "Smart Checklist Progress" field and set Regular Expression value to:
Regular Expression šš» | (^$|.*Done) |
3.5. Click Add -Ā a new Validator will be saved:Ā
Ā
4.Ā Then Publish this changed workflow:
Ā
Check Validator in action
Go to your project Board.
Try to change the state of an item with opened checklist items.
You'll get the error:
Ā
If you check all Smart Checklist items - you'll be able to transition the Jira issue successfully:
Ā
Hope everything works for you! š