Skip to content

Instantly share code, notes, and snippets.

@icelander
Created March 22, 2020 17:17
Show Gist options
  • Save icelander/f598d036f3d3513f9acdc6112bf18933 to your computer and use it in GitHub Desktop.
Save icelander/f598d036f3d3513f9acdc6112bf18933 to your computer and use it in GitHub Desktop.
Example Jira Ticket Update Webhook Payload
{
"timestamp":1536083559131,
"webhookEvent":"jira:issue_updated",
"issue_event_type_name":"issue_generic",
"user":{
"self":"https://paulrothrock.atlassian.net/rest/api/2/user?username=admin",
"name":"admin",
"key":"admin",
"accountId":"557058:c9ebf848-dfac-4c49-9408-dc34bd0e2d85",
"emailAddress":"[email protected]",
"avatarUrls":{
"48x48":"https://avatar-cdn.atlassian.com/40ed89778d66d73a8500b93836ce28a2?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F40ed89778d66d73a8500b93836ce28a2%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue",
"24x24":"https://avatar-cdn.atlassian.com/40ed89778d66d73a8500b93836ce28a2?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F40ed89778d66d73a8500b93836ce28a2%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue",
"16x16":"https://avatar-cdn.atlassian.com/40ed89778d66d73a8500b93836ce28a2?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F40ed89778d66d73a8500b93836ce28a2%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue",
"32x32":"https://avatar-cdn.atlassian.com/40ed89778d66d73a8500b93836ce28a2?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F40ed89778d66d73a8500b93836ce28a2%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
},
"displayName":"Paul Rothrock",
"active":true,
"timeZone":"America/New_York"
},
"issue":{
"id":"10000",
"self":"https://paulrothrock.atlassian.net/rest/api/2/issue/10000",
"key":"TP-1",
"fields":{
"issuetype":{
"self":"https://paulrothrock.atlassian.net/rest/api/2/issuetype/10004",
"id":"10004",
"description":"jira.translation.issuetype.bug.name.desc",
"iconUrl":"https://paulrothrock.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10303&avatarType=issuetype",
"name":"Bug",
"subtask":false,
"avatarId":10303
},
"timespent":null,
"project":{
"self":"https://paulrothrock.atlassian.net/rest/api/2/project/10000",
"id":"10000",
"key":"TP",
"name":"Test Project",
"projectTypeKey":"software",
"avatarUrls":{
"48x48":"https://paulrothrock.atlassian.net/secure/projectavatar?avatarId=10324",
"24x24":"https://paulrothrock.atlassian.net/secure/projectavatar?size=small&avatarId=10324",
"16x16":"https://paulrothrock.atlassian.net/secure/projectavatar?size=xsmall&avatarId=10324",
"32x32":"https://paulrothrock.atlassian.net/secure/projectavatar?size=medium&avatarId=10324"
}
},
"fixVersions":[
],
"aggregatetimespent":null,
"resolution":{
"self":"https://paulrothrock.atlassian.net/rest/api/2/resolution/10000",
"id":"10000",
"description":"Work has been completed on this issue.",
"name":"Done"
},
"resolutiondate":"2018-09-04T13:52:39.110-0400",
"workratio":-1,
"watches":{
"self":"https://paulrothrock.atlassian.net/rest/api/2/issue/TP-1/watchers",
"watchCount":1,
"isWatching":true
},
"lastViewed":"2018-09-04T13:52:39.010-0400",
"created":"2018-09-04T13:15:49.526-0400",
"customfield_10020":null,
"customfield_10021":[
],
"priority":{
"self":"https://paulrothrock.atlassian.net/rest/api/2/priority/3",
"iconUrl":"https://paulrothrock.atlassian.net/images/icons/priorities/medium.svg",
"name":"Medium",
"id":"3"
},
"customfield_10024":null,
"labels":[
],
"customfield_10016":null,
"customfield_10017":"3_*:*_1_*:*_27155_*|*_10000_*:*_2_*:*_2182437_*|*_10002_*:*_1_*:*_0",
"customfield_10018":null,
"customfield_10019":"0|hzzzzz:",
"aggregatetimeoriginalestimate":null,
"timeestimate":null,
"versions":[
],
"issuelinks":[
],
"assignee":null,
"updated":"2018-09-04T13:52:39.114-0400",
"status":{
"self":"https://paulrothrock.atlassian.net/rest/api/2/status/10002",
"description":"",
"iconUrl":"https://paulrothrock.atlassian.net/",
"name":"Done",
"id":"10002",
"statusCategory":{
"self":"https://paulrothrock.atlassian.net/rest/api/2/statuscategory/3",
"id":3,
"key":"done",
"colorName":"green",
"name":"Complete"
}
},
"components":[
],
"timeoriginalestimate":null,
"description":"This should send a webhook.\n\n\n\nUpdating the ticket should also send a webhook request.",
"customfield_10013":null,
"customfield_10014":null,
"timetracking":{
},
"customfield_10015":null,
"customfield_10005":null,
"customfield_10006":null,
"customfield_10007":null,
"security":null,
"customfield_10008":null,
"aggregatetimeestimate":null,
"customfield_10009":null,
"attachment":[
],
"summary":"Updating an issue",
"creator":{
"self":"https://paulrothrock.atlassian.net/rest/api/2/user?username=admin",
"name":"admin",
"key":"admin",
"accountId":"557058:c9ebf848-dfac-4c49-9408-dc34bd0e2d85",
"emailAddress":"[email protected]",
"avatarUrls":{
"48x48":"https://avatar-cdn.atlassian.com/40ed89778d66d73a8500b93836ce28a2?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F40ed89778d66d73a8500b93836ce28a2%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue",
"24x24":"https://avatar-cdn.atlassian.com/40ed89778d66d73a8500b93836ce28a2?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F40ed89778d66d73a8500b93836ce28a2%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue",
"16x16":"https://avatar-cdn.atlassian.com/40ed89778d66d73a8500b93836ce28a2?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F40ed89778d66d73a8500b93836ce28a2%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue",
"32x32":"https://avatar-cdn.atlassian.com/40ed89778d66d73a8500b93836ce28a2?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F40ed89778d66d73a8500b93836ce28a2%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
},
"displayName":"Paul Rothrock",
"active":true,
"timeZone":"America/New_York"
},
"subtasks":[
],
"reporter":{
"self":"https://paulrothrock.atlassian.net/rest/api/2/user?username=admin",
"name":"admin",
"key":"admin",
"accountId":"557058:c9ebf848-dfac-4c49-9408-dc34bd0e2d85",
"emailAddress":"[email protected]",
"avatarUrls":{
"48x48":"https://avatar-cdn.atlassian.com/40ed89778d66d73a8500b93836ce28a2?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F40ed89778d66d73a8500b93836ce28a2%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue",
"24x24":"https://avatar-cdn.atlassian.com/40ed89778d66d73a8500b93836ce28a2?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F40ed89778d66d73a8500b93836ce28a2%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue",
"16x16":"https://avatar-cdn.atlassian.com/40ed89778d66d73a8500b93836ce28a2?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F40ed89778d66d73a8500b93836ce28a2%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue",
"32x32":"https://avatar-cdn.atlassian.com/40ed89778d66d73a8500b93836ce28a2?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F40ed89778d66d73a8500b93836ce28a2%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
},
"displayName":"Paul Rothrock",
"active":true,
"timeZone":"America/New_York"
},
"aggregateprogress":{
"progress":0,
"total":0
},
"customfield_10000":"{}",
"customfield_10001":null,
"customfield_10002":null,
"customfield_10003":null,
"customfield_10004":null,
"environment":null,
"duedate":null,
"progress":{
"progress":0,
"total":0
},
"votes":{
"self":"https://paulrothrock.atlassian.net/rest/api/2/issue/TP-1/votes",
"votes":0,
"hasVoted":false
}
}
},
"changelog":{
"id":"10009",
"items":[
{
"field":"resolution",
"fieldtype":"jira",
"fieldId":"resolution",
"from":null,
"fromString":null,
"to":"10000",
"toString":"Done"
},
{
"field":"status",
"fieldtype":"jira",
"fieldId":"status",
"from":"10000",
"fromString":"Backlog",
"to":"10002",
"toString":"Done"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment