Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Atlassian Document Format to HTML Edited

Hey there, 

I am currently in the process of updating my usage of Jira's API to the new v3. With the introduction of Atlassian Document Format is there going to be support for converting this format into HTML, especially for worklogs? 

If there won't be support for this, is there a way to get the body of a comment and worklog not in the Atlassian Document Format? It was very easy to extract the body of a comment and worklog in v2 as opposed to now having to dig into a nested JSON structure.

 

Cheers, Phil

2 answers

1 accepted

1 vote
Answer accepted
Dario B Atlassian Team Aug 29, 2019

Hi @Phil_Dimeski ,

You may be interested in following the below bug ticket in order to see how it goes:

 

Also, even if it is not so clear in the documentation, a way to get the comment body returned as HTML is to call the GET /rest/api/3/[ISSUE KEY or ID]/comments endpoint and append ?expand=renderedBody to it. This way you get something like:

 "renderedBody": "<p>SOME COMMENT<br/>\nTEST BODY<br/>\nsadff<br/>\ndffffffffffffff</p>\n\n<p>istamana</p>\n\n<p>I write a comment</p>",

 

Unluckily this does not work for worklogs comments.

 

Cheers,
Dario

does this work for descriptopn field also?

Dario B Atlassian Team Jul 15, 2021

@faisalamdani 

What, using the v2 endpoint or adding ?expand=renderedBody?

0 votes
Daniel Eads Atlassian Team Mar 11, 2019

Hey Philip,

There has been some discussion around this on the Developer Community:

Unfortunately I don't have any details to share currently about a potential endpoint or method that returns HTML. However, the product management teams involved with ADF have been notified of the need and agree that this should be easier for developers. My best advice at this point is to keep the discussion running on the Developer Community so the issue stays top-of-mind.

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you