question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jira ls - no issues => implement better error handling

See original GitHub issue

Just installed jira cmd and jira ls gives me no issues. I’m using jira cloud (not hosted jira). I guess that something is happening under the hood but no error is thrown so I can tell what is the cause.

jira -V
v0.5.4

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
msorenscommented, Apr 7, 2022

Looks like some mixup on documenting the solution when using a token instead of a password. The issued referred to just above (#93) points to a commit that has nothing to do with documenting the solution here.

So to save some other folks time in figuring it out, here is what should be documented from my experiments ultimately leading to a successful connection for an OAuth-based login.

  1. Navigate to your Atlassian token management page: https://id.atlassian.com/manage-profile/security/api-tokens

  2. Create a token; call it whatever you want; but you should end up something like this: image

  3. Copy that token.

  4. If you have already tried configuring jira-cli delete your ~/.jira/config.json file.

  5. Run jira to start the configuration again.

  6. Go through the dialog, but instead of entering a password, enter the token from line (3).

% jira
Jira URL: https://<your-org-here>.atlassian.net/
Username: <your-org-email>
Password: <your-token>
Information stored!
  1. Confirm your information is stored correctly in the configuration:
% grep token ~/.jira/config.json | awk -F \" '{print $4}' | base64 -d

The output should be

<your-org-email>:<your-token>
  1. Test your connection:
% jira ls
1reaction
bartmoccommented, Aug 14, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Implement better error handling · Issue #257 · atlassian-api ...
For some reason the JIRA server is randomly throwing authentication errors. I'll take this up with my IT group. however the python API...
Read more >
Jira fails to start with UnsupportedClassVersionError in the logs
After upgrading an app (plugin), Jira may fail to start when it's next restarted and report an "UnsupportedClassVersionError" error in the logs.
Read more >
Issues are not showing under child issues panel | Jira
Diagnosis. Verify if the issues link table and the link type are proper or not using the below queries. SELECT ls.id,ls."source",ls.
Read more >
Jira Service Management Upgrade Failed With Error "Failed to ...
Problem. A pop up with the following error message appears during the Jira Service Management upgrade from the page ⚙ > Applications ...
Read more >
Too many open files error in Jira server
To count the open files opened by the JAVA process, we can use the command below to get a count: ls -U /proc/\{JAVA-PID}/fd...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found