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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

JIRA wiki markup via REST API into PHP

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.
Nov 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