Getting source code associations for report

Thursday, August 4, 2022

Since we managing our requirements BDD-style, it makes good sense to have links between our Gherkin files (source code) and Requirements, since the Gherkin serves both as a test case and as an extension to the requirements. I don't want to maintain Gherkins as separate Spira artifacts since our CI server runs continuous (cucumber) tests based on those Gherkins, so they are considered source code. 

Thankfully, this type of association is supported by Spira. However, I'd like to make a custom report that shows the requirements listed and for each its associated source files (=gherkins). Now I don't see an out of the box table to use for getting to the source files (although I can pull that info out using the REST API). Also, I'm not sure if the links between source files and requirements would show up in the ArtifactAssociations table (since the source files have no table and no Ids).

Is a report like this possible, or will it be possible in the near future?


2 Replies
23 hours 38 minutes ago
re: dl.pie Thursday, August 4, 2022


The Standard Report sections should include this association. It won't be available for use in custom sections because that table is not currently exposed as a reportable view.

If you run the Requirements Detailed report in Raw XML format, you should see the Source Code associations?



8 hours 11 minutes ago
re: inflectra.david Sunday, August 7, 2022

Hey David,

No unfortunately not. I think what you refer to are associations with source code revisions

I can link a revision with a requirement, and this will show up in the XML (SourceCodeRevisions subtable).  This will also show up in the Associations tab of the requirement in question (while a source code link will only show up in the associations tab of the source file, but not in the requirement)

While I can also see uses for linking source code revisions with requirements, this is not what we are looking for here. The link is between the source file itself and the requirement. Spira supports this, but the reporting does not. 


  • Started: Thursday, August 4, 2022
  • Last Reply: 8 hours 11 minutes ago
  • Replies: 2
  • Views: 44