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

how to show contents of a gadget inside a dashboard using jira rest api ?

ravi March 14, 2015

i am creating a mobile application and want to show some details of a text gadget which is inside a dashboard in JIRA using rest api . The max that i was able to do was to get the dashboard i wanted using its ID, but i couldn't get the contents of the gadget that is inside the particular dashboard . which JIRA rest api do i need to use to show the contents of the gadget in that particular dashboard ?

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
Jobin Kuruvilla [Adaptavist]
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.
March 14, 2015

Almost all the gadgets use REST API to get the content. You can peak into network traffic, using Chrome developer tools or Firebug, and figure out the REST API call by refreshing the gadget.

ravi March 16, 2015

Hi Jobin, Thanks for the answer , but i have added text gadget into my dashboard and inside text gadget i have my html code and want to retrieve this data using rest api , do i need to check in to the network tab of the to get the rest api ? but for now i am using https://help.domain.com/rest/api/2/dashboard/13403 to go into the dashboard but couldn't see the gadgets information from that URL so my questions boils down to - Do i need to append the api found in the network tab of chrome developer tools to this api that i have ?

ravi March 16, 2015

Adding to the point - i have added static content in the text gadget , how to get that content using the rest service ?

Jobin Kuruvilla [Adaptavist]
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.
March 16, 2015

Yes, find the REST API from network tab and that should return you the actual data in the gadget.

MattS
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.
March 16, 2015

The gadgets also use their own private rest API too

TAGS
AUG Leaders

Atlassian Community Events