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!