I am trying to define the parent and child fields while creating the Jira ticket using Groovy pipeline but it keeps getting failed due to the below error.
The child field dropdown gets changed on the basis of the value selected in the parent field
My code is like:-
//Country
customfield_24161:[value:'US'],
//City in that country US
//customfield_24161: child: [value: 'Washington']},
I am getting the below error
errorMessages":[],"errors":{"customfield_24161":"Specify a valid option 'name' for Country"}}