hello i searched on the website and i found to get the html rendred using the jira api i just need to give an url like this :
but this is returning the same thing if i take off the ?expand=renderedFields
me i just want to get the the html of the comments body is there any way to do this ? thank you
The API request for comments with the added expand=renderFields does not display the HTML code of the fields. What this expansion does it the following:
renderedFields = HTML-rendered field values in the response (Not HTML code)
Additionally you can find more about the renderedFields within the documentation at Class Issue.RenderedFields along with the API requests at Jira REST API (See expansion). There is additional data for API requests on Get Comments where examples are provided for available field names.
I hope this clarifies how to access data through API requests.
Thank you for your answer
i figured out how to get the HTML of the comments so what i did was :
first a rest request using the Jira Api
the id is the issue id from where i want to get comments , the result is a lot of fields and also there is comment field which contain a body field inside where i can finally get the HTML format of the comment .
hope it helps someone over there if he is facing the same problem !
Have a great day Stephen
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