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

JIRA wiki markup via REST API into PHP

John Miller November 26, 2015

Hello, I am successfully querying my issue in PHP using cURL:

$issue->fields->summary

The output, however, is not marked up as it is in the issue's description on JIRA itself. At first I thought it was Markdown, so I sent it through that renderer:

Markdown::convertToHtml($issue->fields->summary)

but that did not work, because it turns out it's not Markdown at all. Here is the syntax: https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all

How do I go about grabbing the full rendered output of the formatted fields, in this case the summary field?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Andreas Ebert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 26, 2015

You're probably talking about the description field. The summary field is not a rendered field, i.e. you cannot use JIRA's wiki syntax to format it.

But to answer your question: You can get the rendered output by expanding renderedFields. Take a look at the docu for the REST resource GET /rest/api/2/issue/{issueIdOrKey} and search for renderedFields. There is explains how to use it.

 

TAGS
AUG Leaders

Atlassian Community Events