Forums

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

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

MuthuSelvan SR January 13, 2014

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=146.17.64.17 -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 https://nikensl.jira.com/--user muthusr --password password

ERROR :

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
MuthuSelvan SR January 14, 2014

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

0 votes
Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 14, 2014
  1. Upgrade to 3.7 which provides non-admins access to custom field names.
  2. Use --components xxxx to set the component system field
Ajay Bhoopalam
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!
January 2, 2015

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

0 votes
MuthuSelvan SR January 14, 2014

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 .

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 14, 2014

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events