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?
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?
The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...
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!
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