The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Structure of Description field in webhook

Javier Sassen
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!
September 27, 2023

We're making use of the webhook on deletion of issues to preserve this information outside of JIRA. We have been developing this with a demo JSON that's being sent by Atlassian on the deletion of a ticket. In this JSON the Description field was formatted as a Dictionary and so we parsed it as such. We've recently run into the issue that it was not formatted in the ADF format in a Dictionary but as a string. Now we've tested again, and it is being formatted as a string, but with opening and closing {adf} tags which include again a dictionary. Can someone help me in explaning why we're receiving different formats and how we can be sure which one we will receive in the future? Did something change on Atlassian side?

Things we've seen so far:
 

"description": "{adf}{\"type\":\"expand\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"Hi,\"}]}]}{adf}

 

"description": {"type": "doc","version": 1,"content": [{"type": "paragraph","content": [{"type": "text","text": "Hi,"}]}]}
 
"description": "Hi\n\nBye"

Thanks in advance!

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events