ankitpokhrel / ankitpokhrel/jira-cli

Creating issues with custom fields of type group

Aperta
#601 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
waiting for response
Lingua principale
Go
Stelle
6k
Fork
412
Merge medio
2g 3h
PR unite (30g)
1

Descrizione

I want to create an issue via the cli. I provide a value for a custom field that is of`datatype` `group`:

```
- name: Feature Team
key: customfield_11544
schema:
datatype: group
```

When I execute following command:

```
jira issue create -s"New issue" --custom=feature-team="Feature Team 1"
```

I get the following error:

```
Error:
- customfield_11544: Can not instantiate value of type [simple type, class com.atlassian.jira.issue.fields.rest.json.beans.GroupJsonBean] from JSON String; no single-String constructor/factory method

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

I guess it is because of the `datatype` `group` of the custom field, because it is not support byt the api.

**Please provide following details**
1. JiraCLI Version:
```
(Version="1.3.0", GitCommit="ed84fe74f68ba1b2cf0504a931ca09a03b2c9fed", CommitDate="2023-01-02T09:59:32+00:00", GoVersion="go1.19.4", Compiler="gc", Platform="darwin/amd64")
```

2. Are you using Jira cloud or on-premise jira server?
```
Version: 1001.0.0-SNAPSHOT
Build Number: 100221
Deployment Type: Cloud
Default Locale: en_US
```

4. What operating system are you using? Also mention version.
```
macOS Monterey 12.3
```
5. What terminal are you using? Also mention version.
```
Regular mac terminal with oh my zsh
```

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.