Closed neurosnap closed 7 years ago
It should be a POST, we need to send the JQL query to the /search endpoint. Your issue seems to be you are not logged in which is why you are getting cannot be viewed by anonymous users
.
Check out the docs here: https://github.com/Netflix-Skunkworks/go-jira#authentication -Cory
Hmm, I do jira login
which has my username via user: ebower
then I type in my password. I get no indication that the auth has failed or succeeded.
> jira login
Jira Password [ebower]: ********
>
jira ls
then throws the above error.
Basically I think the jira login
worked but the cache cookie will not work with the subsequent jira ls
Did you set:
password-source: keyring
or
password-source: pass
The default go-jira password source is cookie based authentication, which Atlassian has disabled for *.atlassian.net hosted Jira. So you will need to set one of those. I have also make a new release: https://github.com/Netflix-Skunkworks/go-jira/releases/tag/v0.1.10 which might fix some issues with passwords.
Your latest version worked! If I specify pass
does that mean I have to type the password every single time I issue a command?
No, pass
means go-jira will try to fetch the password from the pass
command line tool, as documented here:
https://github.com/Netflix-Skunkworks/go-jira#pass-password-source
Great thanks!
I'm trying to us this cli but am running into some issues.
It looks like doing an
ls
is trying to POST to an endpoint that to me seems like it should be a GETjira ls -v