Integration JIRA with by application

Iryna Levina August 16, 2017

Hello,

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
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 16, 2017

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.

Iryna Levina August 16, 2017

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 - https://jira.atlassian.com/browse/JRACLOUD-30371

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 https://community.atlassian.com/t5/Answers-Developer-Questions/Enable-CORS-in-JIRA-REST-API/qaq-p/553997#M115161)

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 16, 2017

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