Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-66134

Return project key in JSON response for comment and worklog related webhook

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Gathering Interest (View Workflow)
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Webhooks
    • Labels:
      None
    • UIS:
      1
    • Support reference count:
      1
    • Feedback Policy:
      We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              ywoo Yit Wei Woo
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: