ankitpokhrel / ankitpokhrel/jira-cli

`jira issue create` fails for classic project

Offen
#231 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
defect hacktoberfest help wanted
Vorherrschende Sprache
Go
Sterne
6k
Forks
413
Ø Merge
2 T. 3 Std.
Gemergte PRs (30 T.)
1

Beschreibung

**Describe the bug**

**Please provide following details**
1. JiraCLI Version:
```
(Version="0.2.0", GitCommit="06888ef8934a2b95d4a729cc024f11e485239a36", GoVersion="go1.17.2", BuildDate="2021-11-20", Compiler="gc", Platform="darwin/amd64")
```
2. Are you using Jira cloud or on-premise jira server? Also mention the version for on-premise installation.
```
Cloud
```
3. What operating system are you using? Also mention version.
```
macOS Catalina 10.15.7
```
4. What terminal are you using? Also mention version.
```
iTerm 2 Build 3.4.12
```

**To Reproduce**

Steps to reproduce the behavior:

```
jira issue create
? Issue type Oppgave
? Summary test
? Description
? What's next? Submit
⠼ Creating an issue...
Error:
- issuetype: Sakstypen valgt er ugyldig.
```

The error "Sakstypen valgt er ugyldig" is Norwegian for "Invalid issue type"

**Additional context**

Here's my `.config/.jira/.config.yml` generated by `jira init`:

```
board:
id: REDACTED
name: REDACTED
type: kanban
config: ""
debug: false
epic:
name: ""
link: ""
installation: Cloud
issue:
types:
- id: "10011"
name: Historie
subtask: false
- id: "10030"
name: Oppgave
subtask: false
- id: "10031"
name: Deloppgave
subtask: true
- id: "10032"
name: Feil
subtask: false
- id: "10000"
name: Epos
subtask: false
login: REDACTED
project:
key: BIBL
type: classic
server: https://REDACTED.atlassian.net/
```

If I switch to another project, which has `type: next-gen`, it works to create issues. I only have these two projects to test with.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.