ankitpokhrel / ankitpokhrel/jira-cli

`jira issue create` fails for classic project

オープン
#231 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
defect hacktoberfest help wanted
主要言語
Go
スター
6k
フォーク
412
平均マージ
2日 3時間
マージ済み PR(30日)
1

説明

**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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。