Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the Jira CLI with custom fields?

Timothy Hutt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 18, 2025

I'm trying to use the Jira CLI to create an issue, but we have a custom field "Variant" that can be a list of tags.

Unfortunately whatever I try, the CLI gives a VERY uninformative message:

 

"additionalAttributes": {
"customfield_10319": {
"value": "Common"
}
},
Gives "✗ Error: Specify the value for Variant in an array"
Ok 
"additionalAttributes": {
"customfield_10319": {
"value": ["Common"]
}
},
Gives exactly the same error. What about this?
"additionalAttributes": {
"customfield_10319": [{
"value": "Common"
}]
},
This gives "✗ Error: failed to generate JSON"
Where is the documentation for this? Where is the JSON schema?
(Sorry for the bad code formatting; this input widget sucks.)

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events