jira ls - no issues
jamesla opened this issue · comments
I am also getting the "no issues" bug when running
jira ls
I saw that there is another recent similar issue that was closed 8 days ago here https://github.com/germanrcuriel/jira-cmd/issues/75 however the fix won't work for me since we are using a hosted jira so the link on how to get the token is not relevant.
Any ideas how I can get this tool working?
@jamesla were you using this tool earlier or are you a new user
Can you please try following things.
- Please make sure you have https in your config url if you are using https in hosted environment.
- Can you please try logging in from the web and then try logging in to jira-cmd, i have seen many times that when web starts showing captcha for verification then jira-cmd stops authenticating.
Please let me know if above points help . if not , then we will dig deeper into the issue.
Hey Palashkulsh, I'm a new user, the url does have https in it, and I can login directly without any captchas etc showing up
Hey @jamesla
no problem, can you please confirm your username by going to your profile in jira web and seeing your username against username somewhat like this
Above user has username as onkar.chand .
I am asking this web login can take both email and username but cmd login only takes username.
Please let me know if this succeeds.
yep username is identical, have tried with domain\ and without the domain infront
Cool, please wait for just 3-5 minutes, I will share a debug branch with you so that we can find the exact error occuring.
In the meanwhile can you please do the following
copy the token value from ~/.jira/config.json
and then run the following command (if you are on linux/unix)
echo "YOUR_TOKEN" | base64 -d
I am not sure about windows so you can use this https://www.base64decode.org/ to decode your token and check if its decoded to username:password or not.
facing some issue. will update asap.
while testing the issue i deliberately changed my token to something random and tried few times. I also started getting no issues.
After some time jira started asking me to login again on web as well due to incorrect attempts.
I have pushed the logging changes in master
can you please do a fresh install by
npm i -g https://github.com/germanrcuriel/jira-cmd
and then run jira ls and share the error output.
Ok thanks for the patch the error is a 403. I logged off and logged in via web gui and there actually is a corporate login page that sits infront of our Jira so I might be out of options. I presume there isn't an alternative way to login with a token or something?
so do you have jira login password or is everything proxied via corporate page.
are you getting an option to generate tokens in your profile section?
Corporate login page appears to handle auth and regular login mode is disabled. That would explain the 403!
Looks like I am stuck then. Thanks for all your help!
That really sucks. I'll try to find any work around and will let you know if i find any.