Chuyển tới nội dung chính

List of Mapped Statuses

Retrieves the list of mapped status in a specified channel.

GET odata/_fieldMappings  
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]

URL Endpoint

Method

GET.

Parameters

Request

*Header*

--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]

Body

This method does not supply the request body.

Response

If successful, this method returns a 200 OK response code and the list of statuses in source.

{

"@odata.context":
"https://schema.appvity.com/odata/$metadata#_fieldMappings",

"value": [

{

"_id": "5f602e274d596392f53d4575",

"fieldId": "5f5ed9639669798c318eb768",

"fieldName": "In Progress",

"projectId": "5f602e074d596392f53d456c",

"projectHostname": "https://anadea.visualstudio.com",

"source": "Microsoft.Vsts",

"sourceId": "277237cd-0bc0-4ffb-bdc6-d358b154ba9e",

"sourceName": "Active",

"enable": ## true## ,

"type": "status",

"createdAt": "2020-09-15T02:59:51.433Z",

"updatedAt": "2020-09-15T02:59:51.433Z"

},

{

"_id": "5f680e814d596392f55e3aac",

"fieldId": "5f5ed9639669798c318eb768",

"fieldName": "In Progress",

"projectId": "5f680e6d4d596392f55e0553",

"projectHostname": "anadea.atlassian.net",

"source": "Jira",

"sourceId": "3",

"sourceName": "Active",

"enable": ## true## ,

"type": "status",

"createdAt": "2020-09-21T02:22:57.472Z",

"updatedAt": "2020-09-21T02:22:57.472Z"

},

{

"_id": "5f680e884d596392f55e43be",

"fieldId": "5f5ed9639669798c318eb76a",

"fieldName": "Completed",

"projectId": "5f602de74d596392f53d4568",

"source": "Microsoft.Planner",

"sourceId": "PLSTT-Completed",

"sourceName": "Completed",

"enable": ## true## ,

"type": "status",

"createdAt": "2020-09-21T02:23:04.931Z",

"updatedAt": "2020-09-21T02:23:04.931Z"

}

]

}

Error

Code: 401 UNAUTHORIZED, 500 ERROR EXCEPTION. Content: {error: "error message”}

Example

*Request*

curl --location --request GET
'https://teams.appvity.com/api/fields/task/status/5f602de74d596392f53d4568?t=1601005781556' \

--header 'x-appvity-channelId:
19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \

--header 'x-appvity-teamid: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \

--header 'Cookie:
graphNodeCookie=s%3AMpKXEvYTIRehispfYing8S-UZDmeZUac.eiaEBf3drVuQEY3UqTZv7nQ8Qmz4egC2HRzPxbwwmuc'

*Respond*

| ## Planner source |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ { "id": "PLSTT-NotStarted", "name": "Not started", "percentComplete": 0, "categoty": "" }, { "id": "PLSTT-InProgress", "name": "In progress", "percentComplete": 50, "categoty": "" }, { "id": "PLSTT-Completed", "name": "Completed", "percentComplete": 100, "categoty": "" } ] |