On this page:

Validators for Jira workflow transitions for Checklists for Atlassian cloud

Completing a checklist of tasks within a work item is a common use case in software development. Visit our dedicated software development page to learn about other use cases in Didit.

This page shows you how to set up a validator in a Jira workflow. The validator acts after a user attempts to transition an issue. If the checklist(s) are not complete, the validator rejects the status change and prevents the issue from transitioning to the target status. A common use case for this in software development would be rejecting a transition to “Done” if the “Code development checklist” is not complete. If you would like to hide the status entirely, try using a condition and checking to see if the “Didit checklist completed” field has a certain value.

You must have Jira admin permission in order to add a validator to a Jira workflow. If you do not have Jira admin permission, request assistance from the Jira admin of your instance. Please keep in mind the general best practices when editing Jira workflows. This workflow could be shared with other projects, try to be aware of how many projects you are changing.

If you have multiple checklists attached to an issue, this validator will ensure all checklists are completed.

For more information on multiple checklists, click here.

Choose a validator

Didit offers five validators. Each one checks every checklist on the work item.

ValidatorStops the transition while
The connected checklists are completeda checklist isn’t finished
The work item has a checklistthe work item has no checklist
Every checklist task is completeda task is open or skipped
The checklist task is completedno checklist has the task you name checked
The mandatory checklist tasks are checkeda mandatory task is open
The Add rule dialog of the Jira workflow editor with Didit - Checklists for Jira selected under Marketplace rules, listing the Didit validators.
The Add rule dialog of the Jira workflow editor with Didit - Checklists for Jira selected under Marketplace rules, listing the Didit validators.
  • Work items without a checklist pass the task validators. Add “The work item has a checklist” as well to require one.
  • All validators except “The connected checklists are completed” come with Didit on Atlassian Forge.

Name the task

“The checklist task is completed” asks for the task’s title. Enter the whole title; case, spaces and mentions don’t matter. Two tasks with that title count as one, so checking either is enough.

The Add Rule dialog of the Jira workflow editor for The checklist task is completed, on the transition to Done, with QA sign-off entered in the highlighted Task title field.
The Add Rule dialog of the Jira workflow editor for The checklist task is completed, on the transition to Done, with QA sign-off entered in the highlighted Task title field.

If you rename the task in your template, update the validator. Until then it stops the transition.

  1. A Jira project with the project settings button highlighted.
    A Jira project with the project settings button highlighted.
  2. Go to the “Workflows” on the left side and click the pencil icon to edit the workflow.

    Project settings with the workflow section and the pencil icon highlighted.
    Project settings with the workflow section and the pencil icon highlighted.
  3. In the diagram view, click the transition you would like to add the validator to.

    The workflow editor with an arrow to the target transition.
    The workflow editor with an arrow to the target transition.
  4. Select “Validators” from the options.

    The workflow editor with a transition selected and an arrow to the validators button.
    The workflow editor with a transition selected and an arrow to the validators button.
  5. Click “Add validator.”

    The validator page with the add validator option highlighted.
    The validator page with the add validator option highlighted.
  6. Choose a Didit validator from the list, for example “The connected checklist is completed - Checklists for Jira.”

    The validator list with the connected checklist is completed option selected.
    The validator list with the connected checklist is completed option selected.
  7. Create the validator by clicking “Add” again.

    The validators page with an arrow to the add button.
    The validators page with an arrow to the add button.
  8. Publish the draft to apply the changes and make them effective. If you think you may want to revert the change, you can always save a backup copy.

    The validator list with an arrow to the publish draft button.
    The validator list with an arrow to the publish draft button.
  9. If a user tries to transition an issue in your project to the designated status but the checklist is not complete, this error will show.

    The error message that shows when a Jira issue cannot be transitioned due to a validator.
    The error message that shows when a Jira issue cannot be transitioned due to a validator.

You can use this same method for any status and any transition in a company managed project.

Link to this page: https://seibert.biz/checklistsjiraworkflowvalidators