Forums

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

Jira Webhook Issue payload expand

Kathiravan Tamilvanan
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!
February 1, 2018

Is there a way to get the webhook event payload when an issue is created/updated/deleted with same data  as the data provided by REST api for an issue.

 

The webhook payload is 

{ 
    "timestamp"
    "event"
    "user": {
               --> See User shape in table below
    },
    "issue": { 
               --> See Issue shape in table below
    },
    "changelog" : {
               --> See Changelog shape in table below    
    },
    "comment" : {
               --> See Comment shape in table below  
    }
}

When you update an issue the webhook event only sends changed state "from" and "to" but it does not send the user who made that change. Whereas the rest api with expanded changelog will provide the author of the changelog as well.

Whereas the REST API provides ( with expand:["changelog"] fields )

{ 
"expand":"operations,versionedRepresentations,editmeta,changelog,renderedFields", "issue": { "fields": { },
"changelog" : { }, } }

Is there anyway to customize the webhook to send the data as similar as the rest api. 

1 answer

0 votes
Alex Koxaras -Relational-
Community Champion
September 17, 2021

Hi @Kathiravan Tamilvanan ,

Since 3+ years have passed since this initial questions, did you looked at the new API to see if you find the answer your are looking for?

Leandro Souza
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!
February 15, 2022

@Alex Koxaras -Relational- I'm facing the same problem, via API I can pass the parameter 

expand: "renderedFields" and it returns the issue.renderedFields.description in HTML format.
But the webhook doesn't send the issue.renderedFields and the issue.description isn't in HTML
Is there anyway to enable the webhook to send the issue.renderedFields?
Elzha Odie March 4, 2023

Hi @Nick Haller i think i got the same question here.. would you mind to give us an advice? thankyou

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events