Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I create an issue via oAuth 2.0 access token?

Edited

Good afternoon!
Please help me to understand API version 3
I use OAuth 2.0 (I have access_token and refresh_token)

 

I want to create an issue (cloud jira)
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post
But i dont understand how to use access_token, in documentation there are examples only with basic(email+api token)


1) Can I use oAuth 2.0 access tokens at all or this possibility doesn't exist and only basic authorization can be used?
2) If possible, can you write an example link where i should send a post request ?


thanks

 

 

 

 

 

I try to do it:

 

const bodyData = {
fields: {
project: {
key: "TEAM",
},
summary: "Main order flow broke11n",
description: "efef",
issuetype: "Task",
},
};

return axios.post(`https://api.atlassian.com/ex/jira/{Here I enter the cloud id}/rest/api/3/issue`, bodyData, {
headers: {
Authorization: `Bearer ${accessToken}`,
Accept: "application/json",
},
});
}

 

 

I get error 400 as a result

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

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