Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > SpiraTeam Issues & Qu... > Build's associations
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?
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.
I'd log a support ticket for additional assistance.
Thx
Now it works, thanks! And I have everything (requirements, incidents, tasks) associated with that build. Cool!
Thanks, David!
And if you have any questions, please email or call us at +1 (202) 558-6885