-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
2
-
1
-
Summary
The JSON data posted by webhooks for any comment or worklog events only contains the issue id. Here is an example
{ "timestamp":1507645154921, "webhookEvent":"worklog_created", "worklog":{ "self":"http://jira.com/rest/api/2/issue/999999/worklog/3340413", "author":{ "self":"http://jira.com/rest/api/2/user?username=admin", "name":"admin", "key":"admin", "emailAddress":"admin@email.com", "avatarUrls":{ "48x48":"http://jira.com/secure/useravatar?avatarId=10122", "24x24":"http://jira.com/secure/useravatar?size=small&avatarId=10122", "16x16":"http://jira.com/secure/useravatar?size=xsmall&avatarId=10122", "32x32":"http://jira.com/secure/useravatar?size=medium&avatarId=10122" }, "displayName":"xxxxxxxxxxxxxx", "active":true, "timeZone":"Europe/Berlin" }, "updateAuthor":{ "self":"http://jira.com/rest/api/2/user?username=admin", "name":"admin", "key":"admin", "emailAddress":"admin@email.com", "avatarUrls":{ "48x48":"http://jira.com/secure/useravatar?avatarId=10122", "24x24":"http://jira.com/secure/useravatar?size=small&avatarId=10122", "16x16":"http://jira.com/secure/useravatar?size=xsmall&avatarId=10122", "32x32":"http://jira.com/secure/useravatar?size=medium&avatarId=10122" }, "displayName":"Administrator", "active":true, "timeZone":"Europe/Berlin" }, "comment":"Adding a worklog", "created":"2017-10-10T16:19:14.921+0200", "updated":"2017-10-10T16:19:14.921+0200", "started":"2017-10-10T16:18:00.000+0200", "timeSpent":"5h", "timeSpentSeconds":18000, "id":"3340413", "issueId":"999999" } }
Suggestion
It should return project information such as projectId and projectKey as well, and also issue information such as issue type, etc
Notes
Due to JRASERVER-59980, JQL filter doesn't work for worklog and comment events. Having them return these information will make it easier to parse the information to perform actions on necessary issues
- relates to
-
JRASERVER-59980 JQL filter for Webhooks doesn't work correctly when "Comment" and "Worklog" related events are fired - CVE-2017-18104
-
- Closed
-
-
JSDSERVER-5538 JSON payload of automation webhook should tell internal from public comment
- Closed
FYI, I just attached a patch to
JRASERVER-59980which appears to fix the lack of jql filtering, and strangely enough as a side effect, looks like it might resolve this one as well - the resulting web hooks after I put that fix in started including the issue key again and stopped getting sent for non-matching entries.