Build's associations

Wednesday, July 5, 2023
Avatar

Hello, team,

We are playing with build entity and as I can see it has associations. But button to add there a link to a requirement/task/incident is enabled from one side but if I click on it, nothing is happened.

 

Is there a way to add associations to a build via API? What type of entities can I associate with build?

3 Replies
Thursday, July 6, 2023
Avatar
re: ilyapolyakov Wednesday, July 5, 2023

Yes, when you use the REST API to post a new build, you send it a list of Git commit Guids or SVN revision numbers:

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

https://api.inflectra.com/Spira/Services/v7_0/SoapService.aspx?datacontract=tns:RemoteBuildSourceCode

an array like this:

[
{"RevisionKey": "Git Guid"},
{"RevisionKey": "Git Guid"},
]

Then inside the Git commits, you have tokens like: [IN:45], [RQ:2] to tag the commit to the artifact.

Thursday, July 6, 2023
Avatar
re: inflectra.david Thursday, July 6, 2023

I'd log a support ticket for additional assistance.

Thx

Thursday, July 6, 2023
Avatar
re: inflectra.david Thursday, July 6, 2023

Now it works, thanks! And I have everything (requirements, incidents, tasks) associated with that build. Cool!

 

Thanks, David!

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: Wednesday, July 5, 2023
  • Last Reply: Thursday, July 6, 2023
  • Replies: 3
  • Views: 936