I have a cascading selecct custom field like
parent1
child1
child 2
parent 2
child 3
child 4
RemoteCustomFieldValue customField=new RemoteCustomFieldValue("customfield_10010",null,new String[]{"parent1"});
RemoteCustomFieldValue customField1=new RemoteCustomFieldValue("customfield_10010",1,new String[]{"child1"});
remoteCustomArray[0]=customField;
remoteCustomArray[1]=customField1;
issue.setCustomFieldValues(remoteCustomArray);
and i am getting an exception,
com.atlassian.jira.rpc.exception.RemoteValidationException: {customfield_10010=The option 'parent1' is an invalid parent option} : []