RemoteValidationException: Custom field ID 'components' is invalid in JIRA CLI

Hello ,

I am trying to automate "creating jira issue" flow .

I don't have admin access and i am using custom field for setting the values through JIRA CLI interface

I have tried with the below command facing the below issue .

java -Dhttp.proxyHost= -Dhttp.proxyPort=8080 -Dhttp.proxyUser=srmuthu -Dhttp.proxyPassword=password -jar jira-cli-3.7.0.jar --action createIssue --project "Nike+" --type "bug" --summary "cascade issue" --custom customfield_12044:Normal,customfield_14442:YES,customfield_12040:Running,customfield_12340:Running,customfield_12050:n/a,components-componenets:Chat --server muthusr --password password


Warning: user is not an administrator. Custom fields names are not available for use or validation. Use custom field ids!

Remote error: com.atlassian.jira.rpc.exception.RemoteValidationException: Custom field ID 'components' is invalid.

But i am using correct custom field which i added through the below error before i got the above error

Remote error: com.atlassian.jira.rpc.exception.RemoteValidationException: {components=Component/s is required.} : []

Pleaes help me to solve the issue or let me know is thery any best way to automate jira functionalities .

Thanks ,

Muthu Selvan SR

4 answers

0 votes

Looks like you've got the *system* field "Component/s" set as mandatory, but are trying to access it as a custom field.

You are correc Nic , but i want update the field componenets ( Label name is :
Component/s ) as chat . but when i trying to do that using custom field its throwing the above error

Please find the below screen shot which i requited to set componenets as Chat

I treid the components with components-textarea , custom-multi-select but still i am getting the same error , please help to solve the above issue .

  1. Upgrade to 3.7 which provides non-admins access to custom field names.
  2. Use --components xxxx to set the component system field

Hi Bob, I find similar error while trying to issue type with "backlog item" option using script Jira APIs. (using Jira 6.1 version). Note, RAN Number Field is a mandatory field Below is the error Remote error: com.atlassian.jira.rpc.exception.RemoteValidationException: {custo mfield_11383=RAN Number is required.} : [] Syntax OR command used: jira_cmd_suffix=' --action createIssue --project "'+project+'" --type "'+issue_type+'" --summary "'+summary+'" --assignee "'+assignee+'" --reporter "'+reporter+'" --fixVersions "'+fix_versions+'" --affectsVersions "'+affects_versions+'" --components "'+components+'" --custom customfield_11383:"'+ran_no+'",customfield_11538:"'+start_sprint+'",customfield_14790:"'+a360_id+'",customfield_11890:"'+sp+'"' Could you help how to use this as System field? Thanks in advance. - Ajay

Thanks all and its working after i changed the custom parameter to system parameter .

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 ...

3,149 views 13 19
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