Work Item Types Fields - List
Returns a list of all fields in the work item type of the process.
GET https://dev.azure.com/{organization}/_apis/work/processdefinitions/{processId}/workItemTypes/{witRefNameForFields}/fields?api-version=4.1-preview.1
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
organization
|
path | True |
string |
The name of the Azure DevOps organization. |
process
|
path | True |
string uuid |
The ID of the process |
wit
|
path | True |
string |
Work item type reference name for fields |
api-version
|
query | True |
string |
Version of the API to use. This should be set to '4.1-preview.1' to use this version of the api. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
successful operation |
Security
accessToken
Personal access token. Use any value for the user name and the token as the password.
Type:
basic
Examples
Get fields from work item type
Sample Request
GET https://dev.azure.com/{organization}/_apis/work/processdefinitions/{processId}/workItemTypes/{witRefNameForFields}/fields?api-version=4.1-preview.1
Sample Response
{
"count": 3,
"value": [
{
"referenceName": "System.State",
"name": "State",
"type": "string",
"pickList": null,
"readOnly": false,
"required": true,
"defaultValue": "Ready to test",
"url": "https://dev.azure.com/fabrikam/_apis/work/processDefinitions/a6c1d9b6-ea27-407d-8c40-c9b7ab112bb6/workItemTypes/myAgile.CustomWIT/fields/System.State",
"allowGroups": null
},
{
"referenceName": "System.Reason",
"name": "Reason",
"type": "string",
"pickList": null,
"readOnly": false,
"required": false,
"defaultValue": null,
"url": "https://dev.azure.com/fabrikam/_apis/work/processDefinitions/a6c1d9b6-ea27-407d-8c40-c9b7ab112bb6/workItemTypes/myAgile.CustomWIT/fields/System.Reason",
"allowGroups": null
},
{
"referenceName": "myAgile.newfield1",
"name": "newfield1",
"type": "string",
"pickList": {
"id": "a07a079a-c79e-4221-9436-a9d732a8a4d0",
"name": "picklist_aef2c045-0d2d-4f92-9d09-56eea553e1ef",
"type": "String",
"isSuggested": false,
"url": "https://dev.azure.com/fabrikam/_apis/work/processDefinitions/lists/a07a079a-c79e-4221-9436-a9d732a8a4d0"
},
"readOnly": false,
"required": false,
"defaultValue": null,
"url": "https://dev.azure.com/fabrikam/_apis/work/processDefinitions/a6c1d9b6-ea27-407d-8c40-c9b7ab112bb6/workItemTypes/myAgile.CustomWIT/fields/myAgile.newfield1",
"allowGroups": null
}
]
}
Definitions
Name | Description |
---|---|
Field |
Type of field |
Pick |
|
Work |
FieldType
Type of field
Name | Type | Description |
---|---|---|
boolean |
string |
|
dateTime |
string |
|
double |
string |
|
guid |
string |
|
history |
string |
|
html |
string |
|
identity |
string |
|
integer |
string |
|
picklistDouble |
string |
|
picklistInteger |
string |
|
picklistString |
string |
|
plainText |
string |
|
string |
string |
|
treePath |
string |
PickListMetadataModel
Name | Type | Description |
---|---|---|
id |
string |
ID of the picklist |
isSuggested |
boolean |
Is input values by user only limited to suggested values |
name |
string |
Name of the picklist |
type |
string |
Type of picklist |
url |
string |
Url of the picklist |
WorkItemTypeFieldModel
Name | Type | Description |
---|---|---|
allowGroups |
boolean |
|
defaultValue |
string |
|
name |
string |
|
pickList | ||
readOnly |
boolean |
|
referenceName |
string |
|
required |
boolean |
|
type | ||
url |
string |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for