Service Methods
The Checklist service exposes the following operations for working with checklists across all supported Polarion object types.parse
Reads and parses checklist data from a custom field on a Polarion object. Returns aChecklist object containing all checklist items, their states, and metadata. If a template is configured, the parsed checklist merges template items automatically.
Supported object types: work items, documents (LiveDocs), test runs, plans.
Returns: A Checklist object with all items and their current states.
When you call
parse(), the service automatically merges items from a configured template into the checklist. You can control this behavior with the nextedy.checklist._TYPEID._FIELDID._STATUS.mergeTemplate configuration property. Template merging can also be disabled after resolution using nextedy.checklist._TYPEID._FIELDID.mergeTemplateResolved. See Configuration Properties for details.store
Saves checklist data back to a custom field on a Polarion object. You can pass either a Checklist object or raw string data.
Supported object types: work items, documents (LiveDocs).
reset
Resets a checklist field back to its configured template state, discarding all user changes. This is the same operation that theChecklistResetToTemplate workflow function performs.
Supported object types: work items, documents (LiveDocs).
applyTemplate
Applies the configured template to a checklist field. Unlikereset, this merges template items into the existing checklist rather than replacing it entirely.
Supported object types: work items, documents (LiveDocs).
getChecklistConf
Retrieves the resolved configuration for a specific checklist field on a Polarion object. The returned configuration reflects the full 4-level property hierarchy (global, type-specific, field-specific, type+field-specific).
Returns: The resolved checklist configuration object.
getChecklistsIdsForSummary
Returns the list of checklist field IDs that contribute to the summary field for a given Polarion object. Use this to determine which checklists are aggregated in summary reporting.
Returns: An array of custom field ID strings.
getDocumentChecklistView
Returns a builder object for rendering checklist widgets in documents and work items. The builder supports interactive editing mode and PDF export mode. Returns: A document checklist view builder.Checklist Object
The Checklist object represents a parsed checklist with all its items and provides methods for querying checklist state.Constructor
Query Methods
Mutation Methods
To count rejected (NOK) items, use
getRejectedCount(). There are no built-in workflow conditions that gate on rejected item counts. You can implement custom workflow conditions using this method through the API. See the Workflow Functions and Conditions reference for the built-in conditions available.Checklist Item Object
Each checklist item represents a single entry in a checklist with its result state, label, and metadata.Properties
Methods
Result State Enum
The result state enum defines the possible states for each checklist item.The N/A and Pending result states are supported in the UI but the enum values shown above reflect the core code states. The full 5-state model (OK, NOK, N/A, Pending, Empty) may map to these base enum values with additional UI-level handling.
Enum Methods
Document Checklist View Builder
The document checklist view builder renders checklist widgets in LiveDocs and work items with support for interactive editing and PDF export.Builder Methods
Test Run and Plan Checklist View
A separate view builder handles test runs and plans with the same builder pattern.Accessing the API
From Velocity (Wiki Pages and Live Reports)
The Checklist service is available as$checklistService in Velocity templates on wiki pages and live reports.
Example: Display checklist items on a wiki page
From Java (Workflow Functions and Conditions)
Access the Checklist service through the Polarion platform service registry. Example: Uncheck all items in a workflow functionFrom JavaScript / Nashorn (Scripted Conditions and Hooks)
Nashorn-based access to the Checklist service is supported. Use the platform registry service pattern to obtain the service instance in scripted workflow conditions and save hooks.
Common API Patterns
Counting Rejected Items for Review Workflows
Rejected (NOK) item counts are not available through built-in workflow conditions. Use the API to implement custom counting logic:Checking Mandatory Item Completion
Working with Multiple Checklists
Related Pages
- Configuration Properties for template and merge configuration
- Workflow Functions and Conditions for built-in workflow integrations
- Polarion Version Support for supported Polarion versions
- Compatibility for supported object types and the feature matrix