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

This widget could not be displayed.

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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

93 views 1 2
Join discussion

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