ankitpokhrel / ankitpokhrel/jira-cli

jira init works but nothing else after.

Aperta
#715 1 commento 4 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
6k
Fork
412
Merge medio
2g 3h
PR unite (30g)
1

Descrizione

**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")
```
3. Are you using Jira cloud or on-premise jira server?
```
SERVER INFO
-----------

Version: 9.4.17
Build Number: 940017
Deployment Type: Server
Default Locale:
```
4. What operating system are you using? Also mention version.
```
MacOS Sonoma 14.2.1 (23C71)
```
5. 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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.