POST api/Task/applicableStatus
Get applicable status of a task
Request Information
URI Parameters
None.
Body Parameters
ApplicableStatusBinder| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
None. |
|
| TaskId |
For creating task, should set TaskId to be 0. |
integer |
None. |
| IssueTypeId |
Indicate what issue type of the created issue is. It will be ignored when TaskId is not 0. |
integer |
None. |
| IssueSystemType |
Indicate what issue system type of the created issue is. It can be ignored when a valid IssueTypeId was set. 0:Regular issue (Not include project request, milestone change) 1:Project Request issue 2:Milestone Change issue |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProjectId": 1,
"TaskId": 2,
"IssueTypeId": 1,
"IssueSystemType": 3
}
application/xml, text/xml
Sample:
<ApplicableStatusBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <IssueSystemType>3</IssueSystemType> <IssueTypeId>1</IssueTypeId> <ProjectId>1</ProjectId> <TaskId>2</TaskId> </ApplicableStatusBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Get applicable status of a task
API_Data_IEnumerableOfNextStatusEx| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Error | ErrorInfo |
None. |
|
| Data | Collection of NextStatusEx |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Error": {
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
},
"Data": [
{
"TransitionId": 1,
"TransitionName": "sample string 1",
"StatusId": 2,
"StatusName": "sample string 3",
"IfClosed": 1,
"ApplicableIssueTypes": [
{
"Id": 1,
"Name": "sample string 2"
},
{
"Id": 1,
"Name": "sample string 2"
}
]
},
{
"TransitionId": 1,
"TransitionName": "sample string 1",
"StatusId": 2,
"StatusName": "sample string 3",
"IfClosed": 1,
"ApplicableIssueTypes": [
{
"Id": 1,
"Name": "sample string 2"
},
{
"Id": 1,
"Name": "sample string 2"
}
]
}
]
}
application/xml, text/xml
Sample:
<API_Data_ArrayOfNextStatusEx xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
<Data>
<NextStatusEx>
<ApplicableIssueTypes>
<NameIdPair>
<Id>1</Id>
<Name>sample string 2</Name>
</NameIdPair>
<NameIdPair>
<Id>1</Id>
<Name>sample string 2</Name>
</NameIdPair>
</ApplicableIssueTypes>
<IfClosed>1</IfClosed>
<StatusId>2</StatusId>
<StatusName>sample string 3</StatusName>
<TransitionId>1</TransitionId>
<TransitionName>sample string 1</TransitionName>
</NextStatusEx>
<NextStatusEx>
<ApplicableIssueTypes>
<NameIdPair>
<Id>1</Id>
<Name>sample string 2</Name>
</NameIdPair>
<NameIdPair>
<Id>1</Id>
<Name>sample string 2</Name>
</NameIdPair>
</ApplicableIssueTypes>
<IfClosed>1</IfClosed>
<StatusId>2</StatusId>
<StatusName>sample string 3</StatusName>
<TransitionId>1</TransitionId>
<TransitionName>sample string 1</TransitionName>
</NextStatusEx>
</Data>
<Error>
<ErrorCode>1</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</Error>
<Success>true</Success>
</API_Data_ArrayOfNextStatusEx>