Your issue stems from how Polarion handles link types and baseline synchronization in traceability matrices. Let me address each aspect systematically:
Link Types Configuration:
The “verifies” link type needs proper bidirectional configuration for baseline traceability. Check Administration > Work Items > Links and verify:
<link-role id="verifies" opposite="verified_by">
<allowedSource type="defect"/>
<allowedTarget type="requirement"/>
</link-role>
Ensure both directions are explicitly defined. Baseline traceability relies on the opposite role being properly configured.
Matrix Cache Synchronization:
Baseline matrix calculations use a separate cache from live views. After creating a baseline, you must force a cache rebuild:
- Administration > System > Clear Caches
- Select “Traceability Cache” and “Baseline Cache”
- Navigate to your baseline: Documents > Baselines > Select your baseline
- Click “Rebuild Traceability” (this forces recalculation)
The rebuild process can take several minutes for large projects. Without this step, the baseline matrix shows stale or incomplete data.
Baseline Sync Timing:
Critical point - links created AFTER baseline creation won’t appear in that baseline’s traceability. Verify the timestamp of your defect links versus the baseline creation time:
- Open a requirement in the baseline view
- Check the “History” tab to see when links were added
- Compare with baseline creation timestamp
If links were added after baseline creation, you need to create a new baseline to capture them.
Project Configuration for Cross-Space Links:
If your defects and requirements are in different project spaces, add this to your project configuration:
<traceability>
<crossProjectLinks enabled="true"/>
<baselineScope includeLinkedProjects="true"/>
</traceability>
Without this setting, cross-project links are excluded from baseline calculations even though they appear in live views.
Traceability Matrix Settings:
Verify your matrix configuration includes the correct link direction. Edit your traceability matrix document and check the query:
SELECT * FROM requirement
WHERE project.id = "your_project"
LINKED BY verifies, verified_by
Include BOTH link directions (verifies and verified_by) to ensure bidirectional traceability in baselines.
Compliance Reporting Workaround:
For immediate compliance needs, generate a custom report that queries links at the baseline date:
- Create a LiveReport with date filter: created <= baseline_date
- Query defect-requirement links with that filter
- Export to PDF for audit documentation
This provides accurate historical traceability while you resolve the baseline matrix issue.
Verification Steps:
After applying these fixes:
- Create a test baseline with 2-3 requirements that have defect links
- Wait 5 minutes for background processing
- Clear caches and rebuild traceability
- Open baseline traceability matrix
- Verify defect links appear correctly
If links still don’t appear, check polarion.log for baseline calculation errors during the rebuild process. The root cause is usually either cache synchronization or cross-project configuration.