Spira API: need an API when I do not know a project ID

Wednesday, October 27, 2021
Avatar

Standart API for getting a requirement requires knowing a project_id: projects/{project_id}/requirements/{requirement_id}

 

But requirements are unique through the system and in our company people used to share them using only their ids. Is there a way to get a requirement through API without knowing from what project it should come?

Or is there an API to recieve a project to which particular requirement belongs to?

2 Replies
Wednesday, October 27, 2021
Avatar
re: ilyapolyakov Wednesday, October 27, 2021

Good news, we have an API for that very purpose :-)

http://api.inflectra.com/Spira/Services/v6_0/RestServiceOperation.aspx?uri=system%2fartifact-types%2f%7bartifact_type_id%7d%2f%7bartifact_id%7d%2fproject-id&method=GET

You give it the artifact type (e.g. 1 for requirement) and the ID of the artifact and it returns the project ID.

Wednesday, October 27, 2021
Avatar
re: inflectra.david Wednesday, October 27, 2021

Great!

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, October 27, 2021
  • Last Reply: Wednesday, October 27, 2021
  • Replies: 2
  • Views: 3523