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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
Community showcase
Published in Opsgenie

Opsgenie and Amazon team up to launch new DevOps Guru integration - now available!

We’re proud to announce that our integration with Amazon DevOps Guru is now live. The Amazon and Opsgenie product teams have worked together to build a deep integration between Opsgenie and the new...

282 views 0 12
Read article

Community Events

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

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you