See all operations
GET: projects/{project_id}/test-cases/types/{TestCase_type_id}/workflow/transitions?status_id={testcase_status_id}&is_creator={is_creator}&isOwner={is_owner}
Description
Will retrieve available transitions for the specied status ID for the currently logged-on user.
How to Execute
To access this REST web service, you need to use the following URL (make sure to replace any parameters (eg {project_id}) with the relevant value (eg 1):
https://api.inflectra.com/Spira/Services/v7_0/RestService.svc/projects/{project_id}/test-cases/types/{TestCase_type_id}/workflow/transitions?status_id={testcase_status_id}&is_creator={is_creator}&isOwner={is_owner}
Request Parameters
Name
|
Description
|
project_id
|
The id of the current project
|
TestCase_type_id
|
|
testcase_status_id
|
|
is_creator
|
Is the user the creator of the testCase
|
is_owner
|
Is the user the owner of the testCase
|
Request Body
Return Data
The JSON and XML examples below show the shape of one entry that will be returned. It does not show an example of how that entry will be populated.
<ArrayOfRemoteWorkflowTransition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v7_0.DataObjects">
<RemoteWorkflowTransition>
<ConcurrencyGuid i:nil="true" />
<Guid i:nil="true" />
<LastUpdateDate i:nil="true" />
<BlankOwner>false</BlankOwner>
<ExecuteByCreator>false</ExecuteByCreator>
<ExecuteByOwner>false</ExecuteByOwner>
<Name i:nil="true" />
<NotificationRoles xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<NotificationSubject i:nil="true" />
<NotifyCreator>false</NotifyCreator>
<NotifyOwner>false</NotifyOwner>
<RequireSignature>false</RequireSignature>
<StatusId_Input>0</StatusId_Input>
<StatusId_Output>0</StatusId_Output>
<StatusName_Input i:nil="true" />
<StatusName_Output i:nil="true" />
<TransitionId>0</TransitionId>
<UserRoles xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<WorkflowId>0</WorkflowId>
</RemoteWorkflowTransition>
</ArrayOfRemoteWorkflowTransition>
[{"ExecuteByCreator":false,
"ExecuteByOwner":false,
"StatusId_Input":0,
"StatusName_Input":null,
"StatusId_Output":0,
"StatusName_Output":null,
"Name":null,
"WorkflowId":0,
"TransitionId":0,
"RequireSignature":false,
"BlankOwner":false,
"NotifyCreator":false,
"NotifyOwner":false,
"NotificationSubject":null,
"UserRoles":null,
"NotificationRoles":null,
"Guid":null,
"ConcurrencyGuid":null,
"LastUpdateDate":null}]