Retrieves the list of mapped status in a specified channel.1
2
3
4GET odata/_fieldMappings
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
URL Endpoint
GET.
Header
1 | --x-appvity-channelId: [ChannelID] |
Body
This method does not supply the request body.
If successful, this method returns a 200 OK
response code and the list of statuses in source.1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92{
"@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"
}
]
}
Code: 401 UNAUTHORIZED, 500 ERROR EXCEPTION.
Content: {error: “error message”}
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”: “” } ] |
Comment