Query JIRA through Confluence (Applinks) REST API

Assume Confluence and JIRA are linked via applinks.

I'm looking for a solution to query JIRA through the Confluence (Applinks) REST API. Something like the {jira-issues] macro in confluence.

The JIRA issues macro on Confluence uses a proxy like http://localhost:1990/confluence/plugins/servlet/applinks/proxy and sends the query inside the request header (why??) as

  1. X-AppId:
  2. X-AppPath:

Is there a way to achieve the result directly?

https://answers.atlassian.com/questions/222396/applinks-in-javascript-get-project-keys-from-jira is a good start, but I need to get issue data.

1 answer

1 vote

Hi Uli,

https://docs.atlassian.com/jira/REST/latest/#d2e3178 will get your the list of issues with the fields.

Is there a way to achieve the result directly?

Do you mean directly contact JIRA from a browser and not proxy the requests? We have to proxy requests because the user's browser might not be logged into JIRA or the user might not have JIRA account at all and the applink is configured to use a different count.

Hi Anatoli,

thanks for getting back on this one. I'm looking into the following scenario

<iframe> -> XDM (AP.request()) -> Confluence REST API --- Applinks ---> JIRA.

The jira-issues macro in Confluence does it like that (except for the iframe). I totally agree that the request from the browser should be proxied, but why is the JIRA query part of the request header? And not - as you would assume - part of the request query param?

Note that I don't want to talk to JIRA directly from the browser (because I'm a Confluence remote app plugin iframe).

Not sure why we pass it inside header.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Thursday in Agile

How Scrum works? It starts with training and education

To answer “How scrum works,” most of the teams I've worked with first addressed the question: “where to start?”  That question applies to both implementation and improvements on the Scrum framew...

196 views 3 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you