I’m trying to integrate Jira comments into my project.
The API (which I’m using) to fetch Jira comments against an issue
<a href="https://api.atlassian.com/ex/jira/%7B%7BSITE_CLOUD_ID%7D%7D/rest/api/3/issue/%7B%7BissuId%7D%7D/comment?expand=renderedBody" rel="noopener nofollow noreferrer" target="_blank">https://api.atlassian.com/ex/jira/{{SITE_CLOUD_ID}}/rest/api/3/issue/{{issueId}}/comment?expand=renderedBody</a>
-
Observation (response):
response?.comments[]?.body is looking good.
response?.comments[]?.renderedBody is not proper with table data.
STR:
Create an issue of any type (comments-supported/enabled).
Add a comment with table.
In table cell, add some text and press enter then add some text.
Check API response, look and parse “renderedBody
