Why Configure a Target Document
By default, when you create a new linked work item from a Risksheet column, the item is stored in the Polarion tracker rather than in a specific document. For regulated workflows (FMEA, HARA), you typically need new risk controls, mitigation tasks, or verification activities stored in designated documents to maintain document-level traceability. ThecreateInDocument parameter lets you specify exactly which document receives new items, independently of where existing items are loaded from.
Step 1: Configure for Downstream Items
For downstream task and mitigation items, placecreateInDocument inside the dataTypes section of your risksheet.json:
createInDocument value uses the folder/docID path format, matching the Polarion document structure.
Step 2: Configure for Upstream Items
For upstream linked items, placecreateInDocument in the column’s typeProperties:
| Item Direction | Configuration Location | Example |
|---|---|---|
| Downstream (tasks, measures) | dataTypes.task.createInDocument | "Risks/Tasks" |
| Upstream (requirements, links) | columns[].typeProperties.createInDocument | "Requirements/SystemReqs" |
Step 3: Use createInCurrentDocument for Document-Scoped Items
When you want new items stored in the current document rather than a separate one, usecreateInCurrentDocument:
Common Pattern: Load Project-Wide, Create in Specific Document
A frequent configuration pattern loads existing items from the entire project (nodocument parameter) while directing new items to a specific document:
Risks/MitigationTasks.
Limitations
| Limitation | Notes |
|---|---|
| No chapter-level placement | Risksheet creates items at the document level; placement within specific chapters or headings is not supported |
| Target document must exist | The document specified in createInDocument must already exist in the Polarion project structure |
| Path format is fixed | Use folder/docID format only — no wildcards or expressions |
Verification
After configuringcreateInDocument:
- Open the Risksheet document and create a new downstream task or linked item
- Save the document
- Navigate to the target document in Polarion
See Also
- Configure Downstream Tasks — task data type configuration
- Configure Multiple Downstream Types — multiple task types with different target documents
- Configure Cross-Project Linking — cross-project item creation and display
- Configure Multi-Project Setup — project-level configuration
Sources
Sources
KB Articles
- Configure downstream traceability columns tasks risk control measures
- Configure upstream traceability columns
- Risksheet Configuration Properties
RisksheetViewServlet.javaExportToPdf.tsPdfExportConfigurationService.javaDocumentConfigProvider.javaNewBaselineCommand.ts