Create a new bug in the current channel that user is in. All the inputted fields will be posted.
1 | POST /odata/bugs |
odata/bugs.
POST.
Support OData Filter syntax.
1 | --x-appvity-channelId: [ChannelID] |
Code: 201 Created
Request1
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
59curl --location --request POST 'https://teams.appvity.com/odata/bugs' \
--header 'x-appvity-channelId: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--header 'x-appvity-teamid: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--header 'Cookie: graphNodeCookie=s%3AlaIrRjrQdBULLxHHgBM0ofupyqfGBmRf.4vy0SDHjNaJ9%2Fa3MeJbeIOQchnkP1NNAQTv9AViLawk' \
--data-raw `
{
"source": "Appvity.eTask",
"name": "A Task 1",
"owner": "Cora Rowland",
"priority": "Normal",
"status": "Not Started",
"body": "",
"startDate": null,
"dueDate": "2020-09-29T17:00:00Z",
"effort": "",
"phase": null,
"phaseName": null,
"bucket": null,
"bucketName": null,
"projectId": "5f5ed93a9669798c318eb6c7",
"assignedTo": [
{
"_id": "5bce7df753b66e19aaa3e8a0",
"sourceId": "5083cb81-35f4-4abd-ba2d-e7b9965c1f89",
"displayName": "Oliver Neal",
"email": "oliver@anadea",
"source": "Microsoft.Graph.User",
"username": "oliver@anadea.com",
"mapping": [
{
"_id": "5e61bd889e653912e84c1ab9",
"source": "Jira",
"localId": "5e61bd889e653912e84c1ab9",
"displayName": "Oliver Neal",
"sourceId": "5afe33734dd24c5791104795",
"email": "oliver@anadea.com",
"projectHostname": "anadea.atlassian.net"
},
{
"_id": "5e61bd889e653912e84c1aa8",
"source": "Microsoft.Vsts",
"username": "oliver@anadea.com",
"localId": "5e61bd889e653912e84c1aa8",
"displayName": "Oliver Neal",
"sourceId": "oliver@anadea.com",
"email": "oliver@anadea.com",
"projectHostname": "https://anadea.visualstudio.com"
}
],
"color": "#71b6a8",
"abrName": "TM",
"avatar": "https://teams.appvity.com/api/users/photo/Microsoft.Graph.User/5083cb81-35f4-4abd-ba2d-e7b9965c1f89",
"svgIcon": "ic_source_graph_24px",
"title": "Microsoft Graph"
}
],
"attachments": [],
"completedDate": null
}
Respond
1 | { |
Comment