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

Tuesday, April 19, 2016 8:04:31 AM

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 7:05:36 PM
Avatar
re: Raul.Katos on Tuesday, April 19, 2016 8:04:31 AM
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://www.inflectra.com/SpiraDemo3/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
Statistics
  • Started: Tuesday, April 19, 2016 8:04:31 AM
  • Last Reply: Friday, April 22, 2016 7:05:36 PM
  • Replies: 1
  • Views: 2421