Overview
Conditions
Conditions are evaluated before a transition executes. If the condition is not met, the transition is blocked and the user sees an error message.ChecklistAllChecked
Blocks the transition unless all items in the specified checklists are checked.
Validation logic: Returns
true only if every active item in every specified checklist has a checked result state (both CHECKED and CONDITIONAL states count as checked). INFORMATION-type items are excluded from validation.
Multi-checklist behavior: When multiple field IDs are specified, all checklists must be fully checked (AND logic). The condition does not pass if any single checklist has unchecked items.
Error message: When validation fails, the error message identifies which specific checklist has unchecked items, using the field display name.
Workflow XML example:
ChecklistMandatoryChecked
Blocks the transition unless all mandatory items in the specified checklists are checked.
Validation logic: Returns
true if all items flagged as mandatory are checked. Non-mandatory items are ignored. INFORMATION-type items are excluded.
Workflow XML example:
Functions
Functions execute during a transition. They perform actions on the checklist data as part of the workflow operation.ChecklistFailIfAnyUnchecked
Throws a user-friendly error and blocks the transition if any item in the specified checklists is unchecked.
Behavior: Parses each specified checklist and calls the all-checked validation. If any item is unchecked, throws an exception with a message showing the field display name.
Difference from ChecklistAllChecked condition: This is a workflow function, not a condition. It executes during the transition and throws an exception to abort it, whereas conditions are evaluated before the transition starts.
Workflow XML example:
This function works on work items, documents (LiveDocs), and test runs.
ChecklistFailIfMandatoryUnchecked
Throws a user-friendly error and blocks the transition if any mandatory item is unchecked.
Workflow XML example:
ChecklistUncheckAll
Unchecks all items in the specified checklists, clearing all result states back to Empty.
Behavior: Parses each checklist, calls the uncheck-all operation, and stores the updated checklist back to the object. All items return to the unchecked state regardless of their previous result state. Notes and other item metadata are preserved.
Use cases:
- Reopening a work item that was previously completed
- Resetting review cycles when a document returns to draft
- Clearing test run checklists for re-execution
ChecklistResetToTemplate
Resets the specified checklists to their configured template state, discarding all user changes.
Behavior: For each specified checklist field, calls the reset operation which clears all checklist data and re-applies the configured template. All user modifications — checked states, notes, manually added items — are discarded.
Workflow XML example:
ChecklistApplyTemplate
Applies the configured checklist template to the specified checklists, merging template items into existing data.
Behavior: For each specified field, applies the template configured via
workItemTemplateId (or documentTemplateId for documents). Template items are merged into the existing checklist, adding any missing template items without removing user-added items.
Workflow XML example:
ChecklistApplyTemplate merges template items into the existing checklist, preserving user modifications and manually added items. ChecklistResetToTemplate replaces the entire checklist with the template, discarding all user changes.Common Patterns
Definition of Done (DoD) Gate
Block transition to “Done” unless all DoD items are checked:Definition of Ready (DoR) with Mandatory Items Only
Allow transition to “In Progress” when mandatory DoR items are complete:Reset on Reopen
Clear all checklist states when reopening a work item:Synchronize Template Before Approval
Apply the latest template version before freezing the checklist at the approved status:See Also
- Configuration Properties — Complete reference for all
nextedy.checklist.*properties including template IDs, merge control, mandatory flags, and icon customization - IChecklistService API — Programmatic access to parse, store, and reset checklists for custom workflow conditions and scripted automation
- Workflow Gates and Validation — Step-by-step guide for adding checklist conditions and functions to Polarion workflow transitions
- Freezing Checklists by Status — Configure status-based template merge control to freeze checklists at approval or review milestones