Is there a way to do a transition for an incident in SpiraTeam over REST

Tuesday, April 19, 2016
Avatar

After a new incident was created within SpiraTeam a third party tool has to tell SpiraTeam via REST to change the status within the defined workflow from new to e. g. in progress.

I checked the documentation but didn't find any function that looked like Transition/Execute.

If this is possible, which REST function has to be called?

Thanks in advance.

Raul

1 Replies
Friday, April 22, 2016
Avatar
re: Raul.Katos Tuesday, April 19, 2016

Hi Raul

You can update the status of an incident using the REST API.

You don't need to actually send a transition, you just update the IncidentStatusId with the destination status. That means you just use the standard Incident PUT command with the appropriate status.

To get the list of transitions and matching output statuses, you can use the http://api.inflectra.com/Spira/Services/v4_0/RestServiceOperation.aspx?uri=projects%2f{project_id}%2fincidents%2ftypes%2f{incident_type_id}%2fworkflow%2ftransitions%3fstatus_id%3d{incident_status_id}%26is_detector%3d{is_detector}%26isOwner%3d{is_owner}&method=GET call

Regards
Adam

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: Tuesday, April 19, 2016
  • Last Reply: Friday, April 22, 2016
  • Replies: 1
  • Views: 9384