Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Server v8.14.0 WebHook missing important values when the event of type "comment_created"

zoltan_zvara
Contributor
March 8, 2021

Hello!

Due to [1] it is impossible to adequately integrate Jira Server with Discord WebHooks, since the payload incoming from Jira is missing the "issue" field that contains issue-related data with the event of type "commend_created". Here is the payload:

{
  "timestamp": 1615150687039,
  "webhookEvent": "comment_created",
  "comment": {
    "self": "https://redacted/rest/api/2/issue/17334/comment/18977",
    "id": "18977",
    "author": {
      "self": "https://redacted/rest/api/2/user?username=redacted",
      "name": "redacted",
      "key": "redacted",
      "avatarUrls": {
        "48x48": "https://redacted/secure/useravatar?ownerId=redacted&avatarId=10500",
        "24x24": "https://redacted/secure/useravatar?size=small&ownerId=redacted&avatarId=10500",
        "16x16": "https://redacted/secure/useravatar?size=xsmall&ownerId=redacted&avatarId=10500",
        "32x32": "https://redacted/secure/useravatar?size=medium&ownerId=redacted&avatarId=10500"
      },
      "displayName": "redacted",
      "active": true,
      "timeZone": "Europe/Budapest"
    },
    "body": "Test yeah.",
    "updateAuthor": {
      "self": "https://redacted/rest/api/2/user?username=redacted",
      "name": "redacted",
      "key": "redacted",
      "avatarUrls": {
        "48x48": "https://redacted/secure/useravatar?ownerId=redacted&avatarId=10500",
        "24x24": "https://redacted/secure/useravatar?size=small&ownerId=redacted&avatarId=10500",
        "16x16": "https://redacted/secure/useravatar?size=xsmall&ownerId=redacted&avatarId=10500",
        "32x32": "https://redacted/secure/useravatar?size=medium&ownerId=redacted&avatarId=10500"
      },
      "displayName": "redacted",
      "active": true,
      "timeZone": "Europe/Budapest"
    },
    "created": "2021-03-07T20:58:07.039+0000",
    "updated": "2021-03-07T20:58:07.039+0000"
  }
}

 

Is there any way to include "issue" field into the JSON payload generated by Jira Server?

[1] https://github.com/Commit451/skyhook/issues/152

1 answer

0 votes
Stefan Dao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 3, 2022

This is still an issue. Either fix your docs or fix the event please

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.14.0
TAGS
AUG Leaders

Atlassian Community Events