Retrieve the list of tasks in all channels which the user is logged in as a member and is assigned to.
1 | | GET api/me/tasks |
api/me/tasks.
GET.
This method supports the $select, $filter and $orderby OData query parameters to help customize the response.
Request
Header1
2--x-appvity-entityId: [EntityId]
--Cookie: graphNodeCookie=[ID]
Body
This method does not supply the request body.
If successful, this method returns a 200 OK
response code and the list of task objects in the response body.
Error
Code: 401 UNAUTHORIZED, 500 ERROR EXCEPTION.
Content: {error: “error message”}.
Request1
2
3
4
5
6curl --location --request GET 'https://teams.appvity.com/api/me/task' \
--header 'x-appvity-entityId: appvity.etask.mytask' \
--header 'Cookie:
graphNodeCookie=s%3AY_JF9CZQ9zNzJBFtczaMPEDH0z6q-GIu.gVlQqDR9nhJHdn%2BU083X4PuboTi6JCnSnz6vCGcs9qU'
Response1
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144{
"@odata.context": "https://schema.appvity.com/odata/$metadata#tasks",
"@odata.count": 1,
"value": [
{
"bucket": [],
"assignedTo": [
{
"_id": "5e12ca9d85c88e43cb3881c1",
"source": "Microsoft.Vsts",
"sourceId": "oliver@anadea.com",
"displayName": "Oliver Neal",
"username": "oliver@anadea.com"
}
],
"attachments": [],
"_id": "5f730bad3daec4a3b093622f",
"channelId": "19:ad272f12fcf24d6c892222de0587d00e@thread.skype",
"sourceId": "45536",
"teamId": "19:711c68b56d894b2697368214024dc89f@thread.skype",
"body": "<p>sdfsdd</p>",
"bucketName": "null" ,
"createdAt": "2020-09-15T03:00:38.050Z",
"createdBy": {
"source": "Microsoft.Vsts",
"email": "kylachan@anadea.com",
"name": "Cora Rowland",
"sourceId": "kylachan@anadea.com",
"entityId": "eTask.87238db1-8f81-468d-74b1-61d3c23cb341",
"groupId": "2aee63b0-a616-4d52-b22b-84c971ba0d25",
"internalId": 1615,
"name": "Get comment of VSTS task",
"phase": "Z Anadea Project\Sprint 3",
"phaseName": "Z Anadea Project\Sprint 3",
"priority": "Normal",
"source": "Microsoft.Vsts",
"status": "Not Started",
"statusId": {
"_id": "5f1a8fe07d91fb91eca911af",
"category": "New"
},
"statusValue": 0,
"sync": {
"status": null ,
"at": "2020-09-29T10:36:49.755Z"
},
"updatedAt": "2020-09-16T02:52:47.740Z",
"updatedBy": {
"displayName": "Cora Rowland",
"url":
"https://spsprodeau1.vssps.visualstudio.com/A81a8ce47-94e1-4c05-8134-5db3bd24682a/_apis/Identities/7533a36b-eb2b-4c23-8b0d-47a49b8d903e",
"_links": {
"avatar": {
"href":
"https://anadea.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.YjVjMTQxNzQtM2ZmOC03ODZkLTg3NWItNTVlMzU1MzUzZDk1"
}
},
"id": "7533a36b-eb2b-4c23-8b0d-47a49b8d903e",
"uniqueName": "kylachan@anadea.com",
"imageUrl":
"https://anadea.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.YjVjMTQxNzQtM2ZmOC03ODZkLTg3NWItNTVlMzU1MzUzZDk1",
"descriptor": "aad.YjVjMTQxNzQtM2ZmOC03ODZkLTg3NWItNTVlMzU1MzUzZDk1"
},
"projectId": {
"_id": "5f224b72c1baf49f24e4042f",
"projectName": "Z Anadea Project",
"sourceId": "1db34929-5779-4a21-b986-b9846ab1f4b4",
"displayName": "BD"
},
"teamName": "Team Playground V2",
"channelName": "BT Channel"
},
}
]
Comment