Forums

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

How does the autentication works in /api/3 with accountID

Rahoof Ashraf June 18, 2019

I've written a  python scrips to get multiple jira fields (after authenticating with user:api/password) which then passes to a jenkins job, It started failing yesterday and I came across this link https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/

 

it says the use of username/key is no longer supported instead we should use account ID,

 

But I am unable to find a method to authenticate with account ID, 

say if I'm using the below method to post a comment to a ticket via api/2, how do I do the same with api/3 by using the new method as accountid ? 

 

curl -D- -u 'test@yourdomain.com:password' -v -H "Content-Type: application/json" --data '{"body":"hi"}' https://yourdomain.atlassian.net/rest/api/2/issue/$issue/comment

 

2 answers

1 accepted

0 votes
Answer accepted
Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 18, 2019
Rahoof Ashraf June 18, 2019

Thanks, yes it was.. I was using basic instead of api toke, it works with api token in api/2 itself, But going forward how do I achieve the same with api/3 and accountid combination ? 

0 votes
Rahoof Ashraf June 18, 2019

.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events