Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jira init works but nothing else after. #715

Open
shy2 opened this issue Mar 7, 2024 · 0 comments
Open

jira init works but nothing else after. #715

shy2 opened this issue Mar 7, 2024 · 0 comments

Comments

@shy2
Copy link

shy2 commented Mar 7, 2024

Describe the bug
After jira init, all other jira commands fail with either 400 or 401.

Please provide following details

  1. JiraCLI Version:
(Version="1.5.1", GitCommit="0e0f82d52ef5a775d2cc662fbe38d9732b9b5c59", CommitDate="2024-01-20T10:48:06+00:00", GoVersion="go1.21.5", Compiler="gc", Platform="darwin/arm64") 
  1. Are you using Jira cloud or on-premise jira server?
SERVER INFO
-----------

Version:         9.4.17
Build Number:    940017
Deployment Type: Server
Default Locale:
  1. What operating system are you using? Also mention version.
   MacOS Sonoma 14.2.1 (23C71)
  1. What terminal are you using? Also mention version.
Iterm 2 Build 3.4.23

To Reproduce

Steps to reproduce the behavior:

  1. export JIRA_API_TOKEN=''
  2. jira init # works fine, was able to connect and .config.yaml created.
  3. jira issue list # returns an error
Error:
  - The value 'DEV' does not exist for the field 'project'.

jira: Received unexpected response '400 '.
Please check the parameters you supplied and try again.

Expected behavior
From the README, expected to see a list of all recent issues.

Screenshots

Additional context
running the url jira-cli sends with curls works fine:

curl -H "Authorization: Bearer ${JIRA_API_TOKEN}" -X GET https://jira.redacted.com/rest/api/2/search\?jql=project%3D%22DEV%22+ORDER+BY+created+DESC\&startAt=0\&maxResults=1 HTTP/1.1

I get a long json return.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant