Access JIRA board of different org

Hello Everyone, i am building a forge app in confluence to fetch jira issues from a different org based on a filter.

We are using some products of a company and we would like to get the jira issues from their jira to our confluence pages for documentation purposes. I have user acces to their jira board,

I was able to hit their jira board using postman, but i am unable to do so from my confluence using forge.

I could not find proper resources for what permissions are needed to make this request, how to call the jira api and get issues from different org in forge.

I am trying to call the api from my confluence forge app as shown below which fails-${issueIdOrKey}

Not sure, if this is even the right way to do it.

Any help or guidance is greatly appreciated.

Hi Akhil, it’s not possible to make cross-tenant (organisation) API calls from Forge apps. In fact, Forge is deliberately designed to enforce tenant safety.

If you’re just building this app for your own use (i.e. you’re not planning to list it on the marketplace) you could just use an API token and call the Jira API via Forges Fetch API.

Hello @AdamMoore,

Thank you for the reply.

It is for my personal use and will not be putting it out in the marketplace?

Can you post a sample code of how i can call JIRA api using fetch and api token?

Here is the code i tried but its not working -
const response = await fetch(‘{issueId}’, {
method: ‘GET’,
headers: {
‘Authorization’: Basic ${Buffer.from(${API_USERNAME}:${API_TOKEN}).toString('base64')},
‘Accept’: ‘application/json’

const data = await response.json();

Thank you!!