Here’s a complete solution for establishing and maintaining defect-to-change traceability:
1. Cross-Project Defect and Change Workflows:
Modify your CHG workflow to include linking checkpoints at multiple stages:
- Add “Defect Link” as a required field on the CHG create screen
- Configure the field to only accept links from the DEF project
- Add a workflow condition on the “Open to In Progress” transition that checks for at least one link
- Add a post-function that validates the linked defect is in an appropriate state (not Closed)
This ensures traceability is established early and maintained throughout the change lifecycle.
2. Issue Linking Standards and Enforcement:
Establish clear linking standards:
- Use “relates to” link type for changes addressing defects
- Use “blocks” link type when change is waiting on defect resolution
- Document standard in project documentation and team wiki
- Add link type descriptions in Jira admin settings to guide users
Create a linking policy that specifies:
- Every CHG must link to at least one DEF
- Multiple CHGs can link to same DEF (for phased fixes)
- Links must be created during CHG creation, not later
- Removing links requires manager approval
3. Workflow Validators to Enforce Related Issues:
Implement these validators on your CHG workflow:
Validator on “Open to In Progress” transition:
- Type: Linked Issues Validator
- Configuration: Require at least 1 link of type “relates to” to project DEF
- Error message: “Change request must link to at least one defect”
Validator on “In Progress to Done” transition:
- Type: Parent Status Validator (using ScriptRunner or similar)
- Configuration: Verify linked DEF issues are not in “Open” status
- Error message: “Cannot complete change while linked defects are unresolved”
Add a workflow condition that prevents deletion of links:
- Type: User is in Role condition
- Configuration: Only “Change Managers” role can remove links
- This prevents accidental link deletion that breaks traceability
4. Bulk Fixing Missing Links Using JQL:
Identify orphaned change requests with this JQL:
project = CHG AND issueFunction NOT IN linkedIssuesOf("project = DEF") ORDER BY created DESC
Export results and analyze summaries to identify likely parent defects. Use pattern matching on keywords (“fix”, “security”, “bug”) to correlate with defect summaries.
For bulk linking, create a CSV file with format:
CHG-Key,DEF-Key,LinkType
CHG-5678,DEF-1234,relates to
CHG-5679,DEF-1235,relates to
Use Jira REST API or a CSV import tool to create links in bulk. Script example approach:
POST /rest/api/2/issueLink
{
"type": {"name": "Relates"},
"inwardIssue": {"key": "CHG-5678"},
"outwardIssue": {"key": "DEF-1234"}
}
For changes where the parent defect is unclear, create a “Research Required” label and assign to change managers for manual investigation. Don’t guess at links - ensure accuracy for compliance.
5. Audit and Compliance Traceability:
Create a comprehensive audit reporting system:
Dashboard Gadgets:
- Pie chart: Linked vs Unlinked Changes (last 30 days)
- Filter results: Orphaned changes requiring attention
- Two dimensional filter: Changes by link type and status
Scheduled Reports:
Weekly report showing:
project = CHG AND created >= -7d AND issueFunction NOT IN linkedIssuesOf("project = DEF")
Email this to change managers every Monday for follow-up.
Monthly compliance report showing:
project = CHG AND resolved >= -30d
Export with custom columns: Key, Summary, Linked Defects, Link Type, Resolution Date
Generate a traceability matrix in Excel showing defect-to-change relationships.
Audit Trail:
- Enable issue link change notifications in audit log
- Create an automation rule that posts a comment when links are added/removed
- Log link changes to a separate audit project for compliance tracking
Compliance Validation:
Create a quarterly validation process:
- Run JQL to find all changes from quarter
- Verify each has at least one defect link
- Spot-check 10% of links to verify accuracy
- Document results in compliance report
- Address any gaps with corrective action plans
Additional Recommendations:
- Train team on linking standards during onboarding
- Add linking reminder to CHG creation template
- Create a “Quick Link” button on CHG view screen for easy defect lookup
- Implement a pre-approval checklist that includes “Verify defect link”
- Set up automation rule that notifies change manager when CHG is created without links
This comprehensive approach ensures both forward-looking enforcement and backward-looking correction of your traceability issues. The combination of workflow validation, bulk correction, and ongoing audit reporting provides the compliance framework you need.