Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Warning
titleBETA Feature

This feature is currently in beta testing as it may slightly slow down the add-on responsiveness. It might create a custom field on your JIRA instance and keep it in sync with the Checklist's status. However, the syncing occurs when the Checklist is modified. Hence, in certain circumstances (for example, newly created issues), the transition may not work as expected. If you have any feedback, let us know by submitting a support request.

Info

Transition between workflow statuses can go through a validation phase to determine if the transition can go on. To learn more about Configuring Workflows and Workflow Validators, consult the Atlassian Documentation.


Note

To validate a Checklist, ensure that you have administrator rights in JIRA and that you can access the administrative menus.

JIRA Cloud does not allow add-ons to create workflow validators. However, it is possible to


Warning
titleNext Gen Projects

Validation is unfortunately not available is Next Gen projects due to Jira limitations. We are monitoring Next Gen project development so that we can offer validation as soon as possible.


To prevent an issue from transitioning from one state to another .To do sountil a checklist is completed, perform the following steps:

  1. Navigate to Settings > Add-ons > Checklist Definitions
  2. Under the Preferences section, select the Sync with custom field check box. This creates a custom field with the name: Checklist Progress, followed by the name of the definition.

    Info

    For more information, refer to the Configuring a Checklist page.


  3. Navigate to Settings > Issues > Workflows
  4. Edit the desired workflow
  5. Click the transition that you want to apply the validator to. For example, Done.
  6. Click Validators
  7. Click Add validator, select the Regular Expression Check Checklist Validator option, and click Add.
    Image RemovedImage Added

    Select the custom field called: Checklist Progress - <Checklist_name>, enter one of the following in Regular Expression, and click Add.

    Regular ExpressionReason(^$|.*Completed)If you only want to allow completed Checklist to go through to the next state.(^$|.*(All Mandatory|Completed))If you want to allow the transition when Checklist has at least all of their mandatory items completed.
  8. Image RemovedIn the dropdown list select the checklist you need to validate. If you don't see your checklist here, look for the information messages on the page and consult the notes below.

    Image Added

  9. Select the appropriate type of validation: either all items need to be completed or only the mandatory ones. Click the Add button.
    Image Added
  10. Publish your workflow to ensure that the validator is active. 
Warning
titleCryptic error message

Since the add-on cannot add its own validator and the standard validators do not allow to enter a friendly failure description, you will see the standard message which tells you that the field value does not match regular expression.

Image Removed

Notes

For a validator to work you need to configure the definition to sync its completion state with Jira (see step 2 above) so that the corresponding customfield exists.

If some definition does not sync its data, you will see a notification when trying to create a validator. If some definition is configured to sync its data but the customfield does not exist anymore (e.g. it was accidentally deleted), you will see an error message.

Image Added

Similarly, when viewing the validator, you will see an error if its customfield no longer exists:

Image Added

Legacy RegExp validator configuration

If you experience any problems with the checklist validator, please contact us via the support portal.

In the meantime you can use the old way to create a RegExp validator manually, as described here. However, please note that this approach is outdated and is generally not recommended.


Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
cqllabel in ( "status_configuration" , "global_item_template" , "configure_checklist" , "general_preferences" , "agile_card" ) and type = "page" and space = currentSpace ( )


Page Properties
hiddentrue


Related issues