Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > SpiraTeam Issues & Qu... > Spira API: need an API wh...
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?
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.
Great!
And if you have any questions, please email or call us at +1 (202) 558-6885