Forums

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

acli: editing a custom field

Jeremie Charrier
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!
December 15, 2025

Hello,

I'm using the acli in a script to create a work item. I'd like to add the work item to a sprint.

Unfortunately, the sprint command doesn't have and "add-workitem" sub-command.

As a workaround, I thought about updating the custom field corresponding to the Sprint Value on the work item.

I'm using the acli jira workitem edit command, but I can't figure out how to edit a custom field.

I'm trying the --from-json options with the following JSON:

{"issues":["TICKET-6720"],"fields":{"customfield_10122":"8977"}}

And getting the error:

 Error: failed to generate JSON

If I remove the "fields" attribute, I get a success.

How can I format this JSON correctly in order to update that custom field?

Thanks.

1 answer

0 votes
Rock
Contributor
December 15, 2025

Use this JSON format with --from-json:

{"issues":["TICKET-6720"],"customfield_10122":"8977"}


Run:

acli jira workitem edit --from-json yourfile.json


Ensure the field ID is correct and the JSON is valid.

Suggest an answer

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

Atlassian Community Events