GetWorkitemType

Updated at:

Retrieves the details of a work item type.

Applicable editions

Central edition, Region edition

Service endpoint and authorization

  • Get a service endpoint to replace <domain> in the request syntax.

  • Get a personal access token.

  • Get the organization ID: Required only for the Central edition. Find the organization ID on the Basic Information page in the organization management console.

Product

Resource

Required permission

project collaboration

work item type field configuration

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/projex/organizations/{organizationId}/workitemTypes/{id}

Region edition

GET https://{domain}/oapi/v1/projex/workitemTypes/{id}

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

The personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Location

Required

Description

Example

id

string

path

Yes

The unique identifier of the work item type.

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

The organization ID.

5ebbc0228123212b59xxxxx

Request examples

Central edition

curl -X 'GET' \
  'https://test.rdc.aliyuncs.com/oapi/v1/projex/organizations/{organizationId}/workitemTypes/{id}' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://test.rdc.aliyuncs.com/oapi/v1/projex/workitemTypes/{id}' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

object

The details of the work item type.

addUser

object

Details of the user who added the work item type.

id

string

The user ID.

674d96abd497cd558d68****

name

string

The user's name.

name-xxx

categoryId

string

The unique identifier of the work item category, such as Req, Task, or Bug.

Req

creator

object

Details of the user who created the work item type.

id

string

The user ID.

674d96abd497cd558d68****

name

string

The user's name.

name-xxx

defaultType

boolean

Whether this is the default work item type.

true

description

string

The description of the work item type.

Description of the type

enable

boolean

Whether the work item type is enabled.

true

gmtAdd

string

The timestamp when the work item type was added.

gmtCreate

string

The timestamp when the work item type was created.

id

string

The unique identifier of the work item type.

bca48ee2a0976d38f48****

name

string

The work item type name.

Technical Requirements

nameEn

string

The work item type name in English.

Technical Requirements

systemDefault

boolean

Whether this is a system-default work item type.

true

Response example

{
    "addUser": {
        "id": "674d96abd497cd558d68****",
        "name": "name-xxx"
    },
    "categoryId": "Req",
    "creator": {
        "id": "674d96abd497cd558d68****",
        "name": "name-xxx"
    },
    "defaultType": true,
    "description": "Description of the type",
    "enable": true,
    "gmtAdd": "",
    "gmtCreate": "",
    "id": "bca48ee2a0976d38f48****",
    "name": "Technical Requirements",
    "nameEn": "Technical Requirements",
    "systemDefault": true
}

Error codes

For API error codes, see the Error Code Center.