I'm building some remote scripts to retrieve information from JIRA and manipulate it before reflecting that information over in another system - for fields in JIRA that are wiki-markup based, I'd like to be able to show the rendered HTML of those fields, rather than the raw markup.
Does JIRA provide any way for an external script to convert a wiki field into rendered HTML? Confluence, for example, provides a "render" method over SOAP & XML-RPC to accomplish this.
Community moderators have prevented the ability to post new answers.
When fetching an issue, add a query parameter
expand=renderedFields
to use expansion, like in
https://example.org/jira/rest/api/2/issue/FOO-1?expand=renderedFields
The JSON will then contain
{ expand: "renderedFields,...", id: "38096", self: https://example.org/jira/rest/api/2/issue/38096, key: "FOO-1", fields: {...}, renderedFields: {...} }
The rendered HTML is in `renderedFields`.
With JIRA REST API you can query for issue fields rendered as HTML thanks to expansion.
Expansion is described in API introduction: https://docs.atlassian.com/jira/REST/5.2.11/
and it can be used when getting an issue: https://docs.atlassian.com/jira/REST/5.2.11/#id109110
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! I'm not sure how I missed that :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm using the REST "search" resource with expand=renderedFields and I'm getting back issues with a renderedFields attribute but it's always empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also with the direct XML output of the JIRA issue or the filter, one of the elements is the HTML rendered content.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.