Forums

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

JIRA full export example does not work for me.

Wolfgang Müller
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!
March 29, 2026

Dear all,

I got myself an API token and tried to run this:

https://community.atlassian.com/forums/Jira-articles/How-to-export-all-issues-from-Jira-in-JSON-format/ba-p/2372688

I get 

jiraone.exceptions.JiraOneErrors: <JiraOneError: Authentication failed. Please check your credentials. Reason: Unauthorized>

The user that generated the API key has full access. I tried it with two different keys. One full one, one scoped one. Maybe the API key is not what I should paste as "password" into the config.json? If so, how do I turn the API key into the right "password"?

Best,

Wolfgang

2 answers

1 vote
Ajay _view26_
Community Champion
March 29, 2026

Hi @Wolfgang Müller 

Welcome to the community!

Yes, the API token itself is what normally replaces the password for Jira Cloud basic auth, so you should not “convert” it into some other password value.

For Jira Cloud basic auth, the username is your Atlassian account email and the password is the raw API token.

So my first test would be:
- generate a classic token with no scopes
- try a simple REST call with your email + raw token
- if that works, the problem is probably the example/library setup rather than your account permissions

 

0 votes
Arkadiusz Wroblewski
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 Champions.
March 29, 2026

Hello and welcome to the Community @Wolfgang Müller 

I think @Ajay _view26_  is already on the right track with the token part

For Jira Cloud basic auth, the password value is simply the raw API token. There is nothing to convert there. Atlassian’s current auth docs still describe basic auth as email + API token, and the jiraone article uses that same approach in its example config. 

The part I would double-check is whether you created a scoped token or a classic/unscoped one. Atlassian now distinguishes between those, and scoped tokens are not always a drop-in replacement for older examples or tools. 

Please test it in this order:

- use your Atlassian account email

- use the raw API token as the password

- first try a very simple REST call outside the script/tool

If that works, then the credentials are fine and the issue is probably with the example or the library and not with the token itself. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events