Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Programatically create issue in JIRA from Angular 8


I don't have any idea about JIRA. I only heard JIRA is issue tracking tool that's it.
We've developed Angular8 site which is hosted in Sharepoint online - Microsoft Office365 environment,  now on my site if there is any issue on any site pages then it should programmatically log issue/defect/bug in JIRA (JIRA is hosted on AWS-amazon web services). Project is already created in jira , i just want to create issue under that project.
Is there any way to do so using REST URL or anything?
Your help will greatly appreciated. 

Mahesh S

2 answers

Hi @Mahesh Sherkar  Yes you can create an issue in JIRA using Rest API . Please go through this link :-

@Vikrant Yadav :- By using above link i've written one function which will perform Rest Post to Jira site from my Sharepoint site. When i perform Post operation it is giving me below error:- 

Status Code: 403 error
Response Text: XSRF check failed

But from Postmen tool by using same Rest Post url, its working fine.
Could you please suggest  some solution?
Your assistance would be greatly appreciated!

1) My Sharepoint online site is in Office365 environment
2) Jira site is hosted in AWS (Amazon web service platform)
3) Im using Basic Authentication 

hi @Nic Brough _Adaptavist_  can you please suggest on above query. I am not sure about this. 



@Nic Brough _Adaptavist_  , @Vikrant Yadav  :- Do i need to whitelist my sharepoint site in Jira for all the incoming connection?

Configuring the Whitelist:-

I do not have rights in Jira for configuration changes. 
What is your view on this?

I’ve whitelisted my sharepoint site in Jira cloud site still i’m getting below CORS error. I gone through many articles but nothing works.

“Access to XMLHttpRequest at ‘’ from origin ‘’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is ------present on the requested resource.”


Is it possible to resolve above error using frontend programming like Angular8 Or Shall i use backend programming like node.js etc because its crossdomain call?

Your help with this would be greatly appreciated.

Mahesh S

Hi @Mahesh Sherkar  for this error you need to involve network team or you can drop an email or create support ticket under Atlassian for proper resolution. Atlassian can guide you in right direction.



0 votes

Hi, i am also facing same Cors issue while making a post request(Basic auth) from Angular 8 project. do you have any workaround for this Cross-domain issue ? please share.

You need to adjust your code to make the right call with the right headers, or fix the network from which the code is making the call to Jira.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you