How to use Jira CLI's "updateIssue" to update multiple custom fields?

I wanted to update multiple custom fields in Jira using the Jira CLI interface, but there is sort of limitation to the number of custom fields that can be update at one execution of "updateIssue".

This is the commands I use for updating an issue

* update one field

jira --action updateIssue --issue "aaa-1" --field "customfield1" --value "brown"

* update two fields

jira --action updateIssue --issue "aaa-1" --field "customfield1" --value "brown" --field2 "customfield2" --values2 "fox"

If trying to use --field3 and --values3 and so on, it doesn't recognise the command.

Any suggestion how I can update more than 2 custom fields in an issue?

Appreacite any help, thanks!

2 answers

1 accepted

You need to use the custom parameter. It allows you to set an arbitrary number of custom fields. The field/value parameter sets are a convenience for more simple cases.

thank you it was very helpful, it resolved my problem!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,811 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot