Parsing JSON response from JIRA in Confluence using JQuery inside HTML Macro

Fredrick Yessaian January 22, 2016

Hi,

I need to show a dynamic table of data in a confluence page, the data that I have to consume from JIRA response that is JSON object.. I am calling JIRA REST service through a HTML Macro and I am using JQuery ajax to load the data..

Where I have to parse and collect the data that I need .. I am finding hard time to parse the data from the response.. Please suggest a better way to do it.. 

 

 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Mario Günter
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.
January 24, 2016

Hi Fredrick, 

maybe you can take a look at this documentation here: 

http://blogs.atlassian.com/2013/07/display-jira-issues-in-confluence-more-power-more-control/

If it meets your requirements you can take a look at that predefined macros and see how they work. 

Cheers, 
Mario 

0 votes
Volodymyr Krupach
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.
January 22, 2016

You do not need to parse it as jQuery.ajax does it for you. Just put dataType: "json".

TAGS
AUG Leaders

Atlassian Community Events