Forums

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

Using CLI for first time - user id error

Joanne Penney
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 27, 2019

Have downloaded and installed CLI and using the instructions:

https://bobswift.atlassian.net/wiki/spaces/ACLI/pages/98009238/CLI+Client+Installation+and+Use

Have edited jira.bat with server url

In the instructions - item 8, it says:"Cloud users must use their internal user name and not their email!"

But at the bottom of the page it says:

Common Problems

  1. Errors in your bat or sh file.
  2. Incorrect user id or password.
    • Cloud users MUST use their email address 
    • Cloud users MUST use a Atlassian Id API token for their password

So is it email or internal User ID? I am getting a 401 error with either one. though I am not sure how I find out my internal user name?

 

Am using CLIv8.4 and am a site admin

2 answers

1 vote
Sudhir_Appfire_
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.
May 2, 2019

Hi @Joanne Penney ,

As the documentation is incorrect, we have opened a bug request with our development team: https://bobswift.atlassian.net/browse/ACLI-685.

Please try to access the above ticket using your Atlassian credentials. If you face any issue in accessing it, please open in a fresh browser window. Once you access the above ticket, please add yourself as a watcher so that you will get updates.

Regarding the issue you are facing, as per the recent GDPR guidelines issued by Atlassian, there is a change in the authentication parameters for the Cloud. In order to overcome this issue, please follow the below steps:


1. Download CLI client 8.5 SNAPSHOT from this location under the *EAP Client* section.

2. Use the Email address as username and token as password.

  • In order to create a token: Click on your profile avatar on the bottom left corner.
  • Click on Profile --> Manage your account --> Security
  • Under API token, click on Create and manage API tokens (If you see a blank screen, refresh the page Or open this in another browser)
  • Then click on the button Create an API token

A token is created that needs to be copied and kept securely. Use it as --password parameter.

As an example please refer to the following code in Linux:

java -jar /opt/atlassian/cli/atlassian-cli-8.5.0-SNAPSHOT/lib/jira-cli-8.5.0-SNAPSHOT.jar --server https://your-site.atlassian.net --user "john@example.com" --token rg97a5s4agsjsd732 "$@"

If you are still facing any issues, please share us the debug logs by appending --debug to the command. We are happy to help you.

Thanks,
Sudhir

PS: We have opened a Support Request: https://bobswift.atlassian.net/browse/SUPPORT-2350 to track this issue. Once you are able to access, please feel free to update this ticket for our communication.

0 votes
Sudhir_Appfire_
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.
May 6, 2019

Hi @Joanne Penney ,

Thank you for bringing this to us. We have updated the instruction information in this documentation page.

We appreciate it.

Thank you,

Sudhir

Bojana Vasic
Contributor
July 26, 2019

Hi @Sudhir_Appfire_ ,

Maybe you could assist... I am on cloud.

I have customized jira bat file;

rem - Customize for your installation, for instance you might want to add default parameters like the following:
java -jar C:\cli\atlassian-cli-8.8.0-SNAPSHOT\lib\jira-cli-8.8.0-SNAPSHOT.jar --server https://bojana.atlassian.net --user "bojana.vasic@technia.com"--token XXXXXXX %*

I run;
cd C:\cli\atlassian-cli-8.8.0-SNAPSHOT
jira --action getServerInfo

And I get this error;

Error: Unexpected argument: token

Thanks in advance! :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events