Reset a checklist automatically on work item type change
By default, when a work item’s type is changed, its previously saved checklist state can linger even though the new type may use a different template. Nextedy CHECKLIST includes a save hook that resets checklist values automatically when it detects a type change — but only for checklist IDs you’ve explicitly opted in.- Open Administration > Configuration Properties.
- Add the checklist IDs (custom field IDs) that should be monitored for type changes (available from Checklist version 25.1.0):
- Configure a type-specific template for each work item type that uses the same checklist ID:
- Change the work item’s type (for example, from Userstory to Requirement).
Verify in application
getChecklistsIdsForTypeChanges is documented in the service API as only available for work items (not modules, test runs, or plans) — confirm document-level type-change behavior separately if you rely on it there.Known limitation: checklist stuck read-only after type change
A recurring, reopened issue affects documents (and work items) created from scratch and then converted to a different type afterward: the checklist can remain permanently read-only even though the rest of the item’s fields stay editable. Related workflow-status interaction: a document created with the wrong type (for example, a generic type) and later switched to the correct type can also become read-only specifically when its status advances (for example, from Draft to InReview), even though a document created correctly from the template from the start is expected to behave the same way at that status.Checklist-level read-only vs. field-level editability
A checklist can show as read-only in its own widget while the identical underlying custom field appears editable elsewhere, such as in a document’s column view. This is a real, documented mismatch rather than a bug in every case.- Confirm the checklist ID and the custom field ID actually refer to the same field you’re comparing across views.
- Recall that the checklist form extension’s read-only state and the raw field’s Polarion-level editability are controlled independently — a checklist can be locked down via
adminPermission-style configuration properties (see Property Hierarchy and Precedence Reference) while the field itself has no Polarion-level read-only flag set, or vice versa. - Check both layers separately: the checklist’s own admin/edit permission configuration, and the field’s Polarion read-only/field-permission settings.
Checklist merge preserves recorded results but refreshes other fields on re-sync
When a checklist template is re-applied and merged into an existing checklist, only a matching item’s result (its checked/unchecked/N-A state) is carried over and preserved from the existing, stored item. Other fields on that item — label, mandatory flag, description — are refreshed from the incoming template. See Template Merge Behavior for the authoritative description of this behavior. If checklist items appear to keep a stale label or mandatory flag after a template update while the previously recorded result stays exactly as it was, that’s expected merge behavior, not a defect — re-apply the template as a fresh reset (rather than a merge) if you need every field, including previously recorded results, replaced, understanding that a reset discards any progress already recorded.Verify
You should now see the expected outcome for each scenario:- A work item whose checklist ID is listed in
nextedy.checklist.checklistsIdsForTypeChangesresets cleanly to the new type’s template after a type change, instead of carrying over stale items. - A checklist that’s stuck read-only after a type change is recognized as a known limitation, with document/work item creation order and workflow status checked as likely contributing factors.
- A mismatch between a checklist’s read-only state and the underlying field’s editability elsewhere is diagnosed by checking checklist permission configuration and Polarion field permissions as two separate layers.
- A checklist re-synced from its template preserves each item’s previously recorded result state, while labels, mandatory flags, and descriptions on matching items refresh to match the template — understood as expected merge behavior rather than a save failure.
See also
- Multiple Templates per Type and Reset on Type Change
- Checklist Is Marked Read-Only
- Save Errors and Version Compatibility
- Property Hierarchy and Precedence Reference
Sources
Sources
KB Articles
- Checklist is marked as readonly.
- Freeze the checklist on some statuses
- How to reset Checklist to the Template on WI type change
proc-checklist-src/com.nextedy.polarion.checklist/src/com/nextedy/polarion/checklist/ChecklistConf.javaproc-checklist-src/com.nextedy.polarion.checklist/src/com/nextedy/polarion/checklist/internal/hook/SaveHandler.javaproc-checklist-src/com.nextedy.polarion.checklist/src/com/nextedy/polarion/checklist/wf/ChecklistResetToTemplate.javaproc-checklist-src/com.nextedy.polarion.checklist/src/com/nextedy/polarion/checklist/IChecklistService.javaproc-checklist-src/com.nextedy.polarion.checklist/src/com/nextedy/polarion/checklist/internal/ChecklistService.java