Prerequisites
This use case assumes that your traceability is built like this:
Jira issues of issue type “User requirement” (custom issue type)
are linked with “Traces down to” links (custom link type)
to issues downwards the traceability chain (like “Functional Specifications”).
How to Do It:
Log in to Confluence and create a new page. In this page, add all the “regular text” sections, such as “Purpose,” “Scope,” etc.
In the top editor toolbar, click the “+” icon and type “jira s” in the search bar. Then select the “Jira snapshots” macro.
In the “Edit Jira Snapshots Macro” overlay:
Enter a title in the “Level title” field to represent the first level or “list” of Jira issues.
Enter a query in the “Search JQL” field to limit the scope of issues, such as:
project = GAL AND issuetype = "User requirement" AND fixVersion = V1.0 order by 'Requirement type' ASC
In the “Add fields to display” field, select the desired columns.
When configuring the traceability report, you’ll need to select: “+ Add new level”
Enter a title for the 2nd level.
Enter a query in the “Search JQL” field. This time it needs to link with Level 1, such as:
issue in linkedissues($key,"Traces down to") order by key ASC
In the “Add fields to display” field, select the desired columns.
Click the “Insert” button at the bottom right, to complete the macro’s configuration.
Click the “Publish” button at the top right of the page.
Finally, click the “Create controlled snapshot” button to generate a static list of issues.
The Finished Result:
Need to change the issue list, or display different information? Simply edit the macro details and click the “Update” button on the Confluence page to take a new snapshot.
Tips
If your traceability items are managed in Jira, then Jira Snapshots is the only way to create controlled specification documents directly in Confluence.
Use multiple Jira Snapshot macros on the same page to display different sets of issues. For example, one macro to display the user requirements and a second for the traceability from user requirements to functional specifications.
JQL:
Level 1 of the traceability selects the user requirements applicable for our release:
project = GAL AND issuetype = "User requirement" AND fixVersion = V1.0 order by 'Requirement type' ASC
Level 2 of the traceability selects the functional specifications traced down from each user requirement:
issue in linkedissues($key,"Traces down to") order by key ASC