/
Workflows: Validate Checklist before Issue Transition

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

  1. Go to Project Settings โ†’ Workflows

  2. Choose the Workflow you want to add validation to and click Edit:

    ย 

  3. 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

  1. Go to your project Board.

  2. Try to change the state of an item with opened checklist items.

  3. You'll get the error:

    ย 

  4. If you check all Smart Checklist items - you'll be able to transition the Jira issue successfully:

    ย 

Hope everything works for you! ๐Ÿš€

Related content

"Smart Checklist Progress" Custom Field set up
"Smart Checklist Progress" Custom Field set up
Read with this
Validate Mandatory Items Completion before Transition
Validate Mandatory Items Completion before Transition
Read with this
ScriptRunner for Jira
ScriptRunner for Jira
Read with this
Automation for Jira
Automation for Jira
Read with this
JQL Search
Read with this
Mandatory Items
Mandatory Items
Read with this