Forums

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

Response: 403, XSRF check failed

Tara Singh
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!
April 2, 2021

I am using JIRA Rest Api to create task.

 

fetch('https://<subdomain>.atlassian.net/rest/api/2/issue/bulk', {
method: 'POST',
headers: {
Authorization: `Basic ${Buffer.from(
'<email>:1qCieXr7eOVSq4ym4OamCF7A'
).toString('base64')}`,
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: `{ issueUpdates: {
fields: {
parent: {
key: 'DEMO-21',
},
summary: 'new task',
issuetype: {
id: '10003',
},
project: {
id: '10000',
},
duedate: '2021-05-05',
},
} }`,
})
.then((response) => {
console.log(`Response: ${response.status} ${response.statusText}`);
return response.text();
})
.then((text) => console.log(text))
.catch((err) => {
console.log(err);
});

 

1 answer

1 accepted

1 vote
Answer accepted
Tara Singh
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!
April 2, 2021

There was some issue with the development configurations.

it is working fine after fixing them.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events