jira-cli icon indicating copy to clipboard operation
jira-cli copied to clipboard

Unable to use custom issue fields with arrays of users

Open aes256Slater opened this issue 2 years ago • 2 comments

Describe the bug

Custom fields with arrays of users seem to be problematic

I have a config with

            - name: Reviewers
              key: customfield_12300
              schema:
                datatype: array
                items: user

Yet any input given for --custom reviewers=something always fails

jira issue create \
    --config config.yml \
    --project "TEST" \
    --type "Test ticket" \
    --summary "Testing ticket creation" \
    --template "./description_template" \
    --assignee "${ASSIGNEE}" \
    --custom "reviewers"="Martin K" \
    --debug --no-input

Error:
  - customfield_12300: expected Object

Please provide following details

  1. JiraCLI Version:
$ jira version
(Version="v1.3.0", GitCommit="", CommitDate="", GoVersion="go1.19", Compiler="gc", Platform="linux/amd64")
  1. Are you using Jira cloud or on-premise jira server?
SERVER INFO
-----------

Version:         9.4.2
Build Number:    940002
Deployment Type: Server
Default Locale:
  1. What operating system are you using? Also mention version.
Linux Mint 20
  1. What terminal are you using? Also mention version.
GNOME Terminal v3.28.1

aes256Slater avatar Feb 23 '23 20:02 aes256Slater

@aes256Slater This is a Multi-user picker custom field which is not supported at the moment as mentioned in the docs. I will see if I can add this quickly.

ankitpokhrel avatar Feb 27 '23 20:02 ankitpokhrel

Hi @ankitpokhrel. Any plans to address this in the near-ish future?

Also, does this cover the single-user picker field, or is there a separate issue for that one?

gittygitgit avatar Sep 19 '23 17:09 gittygitgit