Available Workflow Functions and Conditions
Checklist provides the following workflow functions and conditions for gate enforcement:
| Name | Type | Behavior |
|---|---|---|
ChecklistFailIfAnyUnchecked | Function | Blocks transition if any checklist item is unchecked |
ChecklistFailIfMandatoryUnchecked | Function | Blocks transition if any mandatory item is unchecked |
ChecklistApplyTemplate | Function | Applies the configured template to checklist fields |
ChecklistResetToTemplate | Function | Resets checklist fields to the template state (discards changes) |
ChecklistUncheckAll | Function | Clears all result states in the checklist |
ChecklistAllChecked | Condition | Enables transition only if all items are checked |
ChecklistMandatoryChecked | Condition | Enables transition only if all mandatory items are checked |
checklist parameter containing the custom field ID(s) to validate.
Step 1: Open the Workflow Designer
- Navigate to Polarion Administration > Work Items > Workflow (or the equivalent for documents/test runs)
- Select the work item type whose workflow you want to configure
- Open the workflow editor
Step 2: Add a Validation Function
To block a transition when checklist items are incomplete, add a workflow function to the target transition.Block if Any Item Is Unchecked
UseChecklistFailIfAnyUnchecked when every checklist item must be completed:
- Select the transition (for example, “Mark as Done”)
- Add a workflow function:
ChecklistFailIfAnyUnchecked - Set the
checklistparameter to the custom field ID
Block if Mandatory Items Are Unchecked
UseChecklistFailIfMandatoryUnchecked when only mandatory items must be completed:
Step 3: Add a Validation Condition
Conditions control whether a transition appears as available to the user. Unlike functions (which show an error on attempt), conditions hide the transition entirely when not satisfied.Require All Items Checked
Add theChecklistAllChecked condition to a transition:
Require Mandatory Items Checked
Add theChecklistMandatoryChecked condition:
Step 4: Validate Multiple Checklists
You can validate multiple checklist fields in a single function or condition by providing a comma-separated list:Step 5: Apply Templates on Transition
UseChecklistApplyTemplate to populate or refresh checklist items when a transition occurs:
ChecklistApplyTemplate to a “Start Work” transition to ensure the checklist is populated when an engineer begins a task.
Step 6: Reset Checklists on Transition
UseChecklistResetToTemplate to discard all changes and restore the template state:
| Parameter | Required | Description |
|---|---|---|
checklist | Yes | Comma-separated field IDs to reset |
skipForUsers | No | Comma-separated user IDs who bypass the reset |
Step 7: Uncheck All Items
UseChecklistUncheckAll to clear all result states without removing items:
Object Type Support
All workflow functions and conditions work with:- Work items — requirements, tasks, defects, test cases, and all custom types
- Documents (LiveDocs) — useful for document review and approval gates
- Test runs — enforce pre-execution or post-execution checklists
| Function/Condition | Work Items | Documents | Test Runs |
|---|---|---|---|
ChecklistFailIfAnyUnchecked | ✅ | ✅ | ✅ |
ChecklistFailIfMandatoryUnchecked | ✅ | ✅ | ✅ |
ChecklistApplyTemplate | ✅ | ✅ | ✅ |
ChecklistResetToTemplate | ✅ | ✅ | ✅ |
ChecklistUncheckAll | ✅ | ✅ | ✅ |
ChecklistAllChecked | ✅ | ✅ | ✅ |
ChecklistMandatoryChecked | ✅ | ✅ | ✅ |
Verification
After configuring workflow gates:- Open a work item with an incomplete checklist
- Attempt the protected transition
- You should now see an error message (for functions) indicating which checklist field has unchecked items, or the transition button hidden entirely (for conditions)
- Complete all checklist items (or all mandatory items) and retry
- The transition should succeed
See Also
- Creating and Managing Templates — set up templates referenced by workflow functions
- Freezing Checklists by Status — stop template merging at specific statuses
- Controlling Access and Permissions — restrict who can modify checklists
- Read-Only Mode — lock checklists after workflow gates pass
Sources
Sources
KB Articles
- How to create checklist template?
- Checklist workflow functions and conditions
- How to control who can change the list and when?
ChecklistService.javaChecklistFailIfAnyUnchecked.javaChecklistResetToTemplate.javaChecklistApplyTemplate.javaChecklistAllChecked.java