Forums

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

Getting issue while trying to add parent child field in Jira using groovy

Gyanendra Ojha July 27, 2023

I am getting the below error while trying to  add parent-child fields during jira creation as below:-

 

customfield_24161: [value: 'US'],
customfield_24161: [child: [value: 'Washington)']],

Error

:"Specify a valid option 'name' for Product Classification"}} 

 The JIra client looks like

"customfield_24161"=>
{"self"=>"https://****.atlassian.net/rest/api/2/customFieldOption/27914",
"value"=>"US",
"id"=>"27914",
"child"=>{"self"=>"https://***.atlassian.net/rest/api/2/customFieldOption/27932", "value"=>"Washington", "id"=>"27932"}},

0 answers

Suggest an answer

Log in or Sign up to answer