Integration JIRA with by application


I need to integrate my application with JIRA. 

Main case is to be able get all projects, issues, filters of user. 

It can be Cloud Jira instance and Server Jira.  If I understood everything right for Cloud Jira I can create Attlassian Connect add-on, and for Server Jira Just use REST API. But in casse of REST API i'm getting CORS erros, even after i've added my app in whitelist. 

Maybe I missed something? What is the way to integrate my app with JIRA to get data from it? 

1 answer

0 votes

You're on the right track, you should be using REST calls to talk to both Cloud and Server (A Connect add-on is based on REST calls)

Problem with CORS errors is that they could be caused by all sorts of things.  There is some code calling out to another system that it cannot reach for some reason.  But we can't really tell you more than that - we don't know if your code is asking JIRA to call out to your system and that's firewalled off, or your code is trying to call another system it can't reach.

Thank you, Nic
There CORS errors because I'm requesting JIRA from my application which is on anouther https domain. 

For Could Jira i'm not able to use just REST API in pure mode because I'm requesting Jira from another domain and Could Jira doesn't support it -

In documentation of Server Jira I found information that for Server Jira I need to add domain of my application to Whitelist of Jira settings, and it will resolve CORS errors. But it doesn't help. I found here meny tickets with the same problem and people just create some proxy to resolve CORS issues (for example this one

But it looks little bit tricky. Maybe there are some other ways to do it more clearly?

I have to admit I'm stuck at this point.  Once I've added a white-listing, everything I've done with REST on Cloud (and Server, even with some serious SSL stuff) has worked fine.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

75 views 0 3
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