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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,508 views 15 20
Read article

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