Thread

Skip Navigation LinksForums > Integrations & Plug-Ins > Bug Tracker Data-Sync Int... > Is there a way to do a tr...

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

Tuesday, April 19, 2016

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
Adam SAdam S
re: Raul Katos on Tuesday, April 19, 2016
Friday, April 22, 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://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: 4/19/2016
  • Last Reply: 4/22/2016
  • Replies: 1
  • Views: 2220
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.