zulip/zerver/webhooks/jira/fixtures/comment_deleted.json
Hemanth V. Alluri 2e20dcc053 webhooks/jira: Update webhook to support improved comment events.
Atlassian announced that it will no longer provide information about
comments along with their "issue" type event payloads for Jira. So
we must now update the Jira integration to appropriately respond to
"comment" type events (the reason why we didn't do this before was
that initially, the "comment" type event payloads didn't contain
sufficient information about their issues, but this payload has
since been improved).

Note: This commit does *not* remove support for the older "issue"
type event payloads where information about comments was included.
This way we can maintain compatibility with old self-hosted versions
of self hosted Jira (2016 and before).

Source:
https://developer.atlassian.com/cloud/jira/platform/change-notice-
removal-of-comments-from-issue-webhooks/

Fixes #13012
2019-08-19 14:22:42 -07:00

114 lines
6.0 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"timestamp": 1565964144825,
"webhookEvent": "comment_deleted",
"comment": {
"self": "https://f20171170.atlassian.net/rest/api/2/issue/10000/comment/10000",
"id": "10000",
"author": {
"self": "https://f20171170.atlassian.net/rest/api/2/user?accountId=5c76b994e1bcdf6294d0eb0f",
"name": "admin",
"key": "admin",
"accountId": "5c76b994e1bcdf6294d0eb0f",
"avatarUrls": {
"48x48": "https://secure.gravatar.com/avatar/bc3f74559ceceb488f4189b7e7bdfec2?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHA-1.png&size=48&s=48",
"24x24": "https://secure.gravatar.com/avatar/bc3f74559ceceb488f4189b7e7bdfec2?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHA-1.png&size=24&s=24",
"16x16": "https://secure.gravatar.com/avatar/bc3f74559ceceb488f4189b7e7bdfec2?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHA-1.png&size=16&s=16",
"32x32": "https://secure.gravatar.com/avatar/bc3f74559ceceb488f4189b7e7bdfec2?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHA-1.png&size=32&s=32"
},
"displayName": "Hemanth V. Alluri",
"active": true,
"timeZone": "Asia/Calcutta",
"accountType": "atlassian"
},
"body": "This is a very important issue\\! Im on it\\!",
"updateAuthor": {
"self": "https://f20171170.atlassian.net/rest/api/2/user?accountId=5c76b994e1bcdf6294d0eb0f",
"name": "admin",
"key": "admin",
"accountId": "5c76b994e1bcdf6294d0eb0f",
"avatarUrls": {
"48x48": "https://secure.gravatar.com/avatar/bc3f74559ceceb488f4189b7e7bdfec2?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHA-1.png&size=48&s=48",
"24x24": "https://secure.gravatar.com/avatar/bc3f74559ceceb488f4189b7e7bdfec2?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHA-1.png&size=24&s=24",
"16x16": "https://secure.gravatar.com/avatar/bc3f74559ceceb488f4189b7e7bdfec2?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHA-1.png&size=16&s=16",
"32x32": "https://secure.gravatar.com/avatar/bc3f74559ceceb488f4189b7e7bdfec2?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHA-1.png&size=32&s=32"
},
"displayName": "Hemanth V. Alluri",
"active": true,
"timeZone": "Asia/Calcutta",
"accountType": "atlassian"
},
"created": "2019-08-16T19:30:17.153+0530",
"updated": "2019-08-16T19:31:43.489+0530",
"jsdPublic": true
},
"issue": {
"id": "10000",
"self": "https://f20171170.atlassian.net/rest/api/2/issue/10000",
"key": "SP-1",
"fields": {
"summary": "Add support for newer format Jira issue comment events",
"issuetype": {
"self": "https://f20171170.atlassian.net/rest/api/2/issuetype/10100",
"id": "10100",
"description": "A task that needs to be done.",
"iconUrl": "https://f20171170.atlassian.net/secure/viewavatar?size=medium&avatarId=10318&avatarType=issuetype",
"name": "Task",
"subtask": false,
"avatarId": 10318,
"entityId": "7781fe72-66c8-43f7-b4cb-ef2482548605"
},
"project": {
"self": "https://f20171170.atlassian.net/rest/api/2/project/10000",
"id": "10000",
"key": "SP",
"name": "Sample Project",
"projectTypeKey": "software",
"simplified": true,
"avatarUrls": {
"48x48": "https://f20171170.atlassian.net/secure/projectavatar?pid=10000&avatarId=10410",
"24x24": "https://f20171170.atlassian.net/secure/projectavatar?size=small&s=small&pid=10000&avatarId=10410",
"16x16": "https://f20171170.atlassian.net/secure/projectavatar?size=xsmall&s=xsmall&pid=10000&avatarId=10410",
"32x32": "https://f20171170.atlassian.net/secure/projectavatar?size=medium&s=medium&pid=10000&avatarId=10410"
}
},
"assignee": {
"self": "https://f20171170.atlassian.net/rest/api/2/user?accountId=5c76b994e1bcdf6294d0eb0f",
"name": "admin",
"key": "admin",
"accountId": "5c76b994e1bcdf6294d0eb0f",
"emailAddress": "f20171170@pilani.bits-pilani.ac.in",
"avatarUrls": {
"48x48": "https://secure.gravatar.com/avatar/bc3f74559ceceb488f4189b7e7bdfec2?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHA-1.png&size=48&s=48",
"24x24": "https://secure.gravatar.com/avatar/bc3f74559ceceb488f4189b7e7bdfec2?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHA-1.png&size=24&s=24",
"16x16": "https://secure.gravatar.com/avatar/bc3f74559ceceb488f4189b7e7bdfec2?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHA-1.png&size=16&s=16",
"32x32": "https://secure.gravatar.com/avatar/bc3f74559ceceb488f4189b7e7bdfec2?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FHA-1.png&size=32&s=32"
},
"displayName": "Hemanth V. Alluri",
"active": true,
"timeZone": "Asia/Calcutta",
"accountType": "atlassian"
},
"priority": {
"self": "https://f20171170.atlassian.net/rest/api/2/priority/3",
"iconUrl": "https://f20171170.atlassian.net/images/icons/priorities/medium.svg",
"name": "Medium",
"id": "3"
},
"status": {
"self": "https://f20171170.atlassian.net/rest/api/2/status/10000",
"description": "",
"iconUrl": "https://f20171170.atlassian.net/",
"name": "To Do",
"id": "10000",
"statusCategory": {
"self": "https://f20171170.atlassian.net/rest/api/2/statuscategory/2",
"id": 2,
"key": "new",
"colorName": "blue-gray",
"name": "To Do"
}
}
}
}
}