Tips
If you use Xray Test Management in Jira, then use Jira Snapshots for test and traceability reports.
JQL:
Level 1 of the traceability selects the functional specifications applicable for our release:Â
project = GAL AND issuetype = "Functional specifications" AND fixVersion = V1.0 order by 'Requirement type' ASC
Level 2 of the traceability selects the tests traced down from each user requirement:Â
issue in linkedIssues($key,"is tested by") AND fixVersion = V1.0 order by key ASC
Prerequisites
This use case assumes that:
Your traceability is built on Jira issues of issue type âFunctional specificationâ (custom issue type) being tested by issues of type âTestâ (which is an issue type installed by the Xray Test Management App)
You are using Xray Test Management, and that Xray test issues are linked to Functional specification issue via a âis test byâ link. You can adapt the link name or the issue type name to what you have.
Here is how to do it
Login to Confluence and create a new page. Add to it all the âregular textâ sections, like âPurposeâ, 'Scope':
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, like:
project = GAL AND issuetype = "Functional specification" 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, like:
issue in linkedIssues($key,"is tested by") AND fixVersion = V1.0 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.
Hereâs 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.