Builds, how to link requirements into builds?

Friday, September 2, 2022
Avatar

Hi Spira Support,

It is possible to link tasks and requirements into builds? Based on Available Database Tables - SpiraDocs (inflectra.com) I can see that incident may have a build, but no such attributes for tasks and requirements. And we need to track not only incidents, we need to know how requirements and tasks are grouped into builds.

 

Another question that in real life we have multiple to multiple relationship between builds and other entities like incidents and tasks. We have dedicated builds that we are supporting for each of our clients and we need to know was that incident/task deployed to their release. So one incident goes to several builds that may be associated to several different release in Spira (when our customers use different versions of our product).

6 Replies
Friday, September 2, 2022
Avatar
re: ilyapolyakov Friday, September 2, 2022

The link is done implicitly via commits:

  • The CI build (from the CI tool such as Jenkins, GitLab, etc.) contains code commits (Git) or revisions (SVN)
  • The code commits have artifact tags such [TK:45] or [RQ:23]
  • the code commits are then linked to the requirements and tasks
  • The builds are linked via. the commits to the requirements and tasks
Monday, September 5, 2022
Avatar
re: inflectra.david Friday, September 2, 2022

David, Thanks for your answer!

Could you provide step by step examples as we would like to synthetically reproduce that logic using Spira's APIs? We are using Amazon code commit that you are not supporting yet.

So, I need to know step by step what entities should I create with what associations, etc. Better with names of API calls that I should use.

Thursday, September 22, 2022
Avatar
re: ilyapolyakov Monday, September 5, 2022

Hi Ilya

OK, for AWS CodeCommit (which is on our list now that we have done GitLab, GitHub and CircleCI). You need to call this Build API:

https://api.inflectra.com/Spira/Services/v6_0/RestServiceOperation.aspx?uri=projects%2f%7bproject_id%7d%2freleases%2f%7brelease_id%7d%2fbuilds&method=POST

The list of commits is very important, basically this JSON:

"Revisions": [
{
 "RevisionKey": "44bf09d0a2c36585aed1c34ba2e5d958a9379718"
},
{
 "RevisionKey": "44bf09d0a2c36585aed1c34ba2e5d958a9379718"
}
]

 

Thursday, September 22, 2022
Avatar
re: inflectra.david Thursday, September 22, 2022

And forgot to mention, the commits inside Git need to have their message include the appropriate Spira token [IN:5], [RQ:2] etc.

Friday, September 23, 2022
Avatar
re: inflectra.david Thursday, September 22, 2022

Great! I am glad to hear that AWS CodeCommit will be supported by Inflectra. We will wait for it.

Friday, September 23, 2022
Avatar
re: ilyapolyakov Friday, September 23, 2022

You're welcome.!

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Friday, September 2, 2022
  • Last Reply: Friday, September 23, 2022
  • Replies: 6
  • Views: 1662