POST api/Field/IssueTypes

Get issue type list based on project id.

Request Information

URI Parameters

None.

Body Parameters

IssueTypeChoicesBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

Option

if Option equals 0, return issue types whose system type is not project request. if Option equals 1, return issue types whose system type is project request. if Option equals 2, return all issue types.

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "Option": 2
}

application/xml, text/xml

Sample:
<IssueTypeChoicesBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <Option>2</Option>
  <ProjectId>1</ProjectId>
</IssueTypeChoicesBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Get issue type list based on project id.

API_Data_ListOfIssueTypeModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

Collection of IssueTypeModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": [
    {
      "TypeId": 1,
      "TypeName": "sample string 2",
      "IconIndex": 1,
      "SystemTypeId": 3
    },
    {
      "TypeId": 1,
      "TypeName": "sample string 2",
      "IconIndex": 1,
      "SystemTypeId": 3
    }
  ]
}

application/xml, text/xml

Sample:
<API_Data_ArrayOfIssueTypeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities">
    <d2p1:IssueTypeModel>
      <d2p1:IconIndex>1</d2p1:IconIndex>
      <d2p1:SystemTypeId>3</d2p1:SystemTypeId>
      <d2p1:TypeId>1</d2p1:TypeId>
      <d2p1:TypeName>sample string 2</d2p1:TypeName>
    </d2p1:IssueTypeModel>
    <d2p1:IssueTypeModel>
      <d2p1:IconIndex>1</d2p1:IconIndex>
      <d2p1:SystemTypeId>3</d2p1:SystemTypeId>
      <d2p1:TypeId>1</d2p1:TypeId>
      <d2p1:TypeName>sample string 2</d2p1:TypeName>
    </d2p1:IssueTypeModel>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_ArrayOfIssueTypeModel>