jira: 400 Bad Request

my company is using the cloud version of jira. our url is: https://my-company.atlassian.net so have a single line in config.yml:

endpoint: https://my-company.atlassian.net
jira ls -u=my-name -p=my-project

ERROR [cli.go:163] response status: 400 Bad Request
ERROR [util.go:196] Field 'resolution' does not exist or this field cannot be viewed by anonymous users.
ERROR [util.go:196] The value '=SANGRE' does not exist for the field 'project'.
ERROR [util.go:196] Not able to sort using field 'priority'.

any idea what could it be? Also, I couldn’t find a password arguments in the --help or the readme.

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 25 (24 by maintainers)

Commits related to this issue

Most upvoted comments

Local-security-risk workaround tested by a coworker: store auth in the endpoint: in config.yml. I had to urlencode the @ symbol in my username (an email address) to %40.

endpoint: https://EMAIL%40DOMAIN.COM:PASSWORD@ACCOUNT.atlassian.net/

I have added some documentation for authentication strategies with go-jira, so I think this issue is finally solved by one of the methods: https://github.com/Netflix-Skunkworks/go-jira/blob/master/README.md#authentication