The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Integration JIRA with by application

Iryna Levina
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
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.