Online Docs

Create bug

Create a new bug in the current channel that user is in. All the inputted fields will be posted.

1
2
3
4
5
POST /odata/bugs  
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
--data-raw: {Bug-Object}

URL Endpoint

odata/bugs.

Method

POST.

Parameters

Support OData Filter syntax.

Request Header

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

Body

Response

Code: 201 Created

Example

Request

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
curl --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
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
{
"@odata.context": "https://schema.appvity.com/odata/$metadata#bugs/$entity",
"@odata.editLink": "https://schema.appvity.com/odata/bugs('5f62c4b94d596392f54d1994')",
"@odata.id": "https://schema.appvity.com/odata/bugs('5f62c4b94d596392f54d1994')",
"source": "Appvity.eTask",
"name": "A Bug 1",
"owner": "Cora Rowland",
"priority": "Normal",
"status": "Not Started",
"body": "",
"startDate": null,
"dueDate": "2020-09-29T17:00:00.000Z",
"effort": "",
"phase": null,
"phaseName": null,
"bucket": [],
"bucketName": null,
"projectId": "5f5ed93a9669798c318eb6c7",
"assignedTo": [
"5bce7df753b66e19aaa3e8a0"
],
"completedDate": null,
"createdAt": "2020-09-17T02:06:49.323Z",
"updatedAt": "2020-09-17T02:06:49.323Z",
"sourceId": "5f62c4b94d596392f54d1994",
"_id": "5f62c4b94d596392f54d1994",
"internalId": 14
}

Comment

Was this article helpful?
Thanks For Your Feedback