Integration JIRA with by application

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

This widget could not be displayed.

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 - 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?

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

148 views 2 0
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