Problem in setting the values to a cascading select custom field using SOAP API

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} : []

1 answer

1 accepted

0 votes

Which version of JIRA? Try giving the option ID instead of value and see if it helps.

@jobin

Hi, i tried by giving the option Id for the parent select list. But I have no idea how to get the Id for the child select list box.

The version is Jira 4.2 and i am using SOAP API.

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,006 views 12 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