POST api/Task/applicableStatus

Get applicable status of a task

Request Information

URI Parameters

None.

Body Parameters

ApplicableStatusBinder
NameDescriptionTypeAdditional 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.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "TaskId": 2,
  "IssueTypeId": 1
}

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">
  <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_IEnumerableOfNextStatus
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

Collection of NextStatus

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
    },
    {
      "TransitionId": 1,
      "TransitionName": "sample string 1",
      "StatusId": 2,
      "StatusName": "sample string 3",
      "IfClosed": 1
    }
  ]
}

application/xml, text/xml

Sample:
<API_Data_ArrayOfNextStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data>
    <NextStatus>
      <IfClosed>1</IfClosed>
      <StatusId>2</StatusId>
      <StatusName>sample string 3</StatusName>
      <TransitionId>1</TransitionId>
      <TransitionName>sample string 1</TransitionName>
    </NextStatus>
    <NextStatus>
      <IfClosed>1</IfClosed>
      <StatusId>2</StatusId>
      <StatusName>sample string 3</StatusName>
      <TransitionId>1</TransitionId>
      <TransitionName>sample string 1</TransitionName>
    </NextStatus>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_ArrayOfNextStatus>