The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Jira Automation: create issue with mandatory Dependent Dropdown (cascading)

David Silva
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!
May 29, 2024

Hello team, I'm trying to create an issue with this custom field that is a Dependent Dropdown.

I'm  configuring the advanced option of "Additional fields" as follows:

{
"fields": {
"customfield_123": [{
"value": "Parent Value",
"child": [{
"value": "Child Value"
}]
}]
}
}

and I get this error

data was not an array (customfield_123), Can not deserialize instance of com.atlassian.jira.issue.fields.rest.json.beans.CustomFieldOptionJsonBean out of START_ARRAY token at [Source: N/A; line: -1, column: -1] (customfield_124)

I get the same field info using REST on another ticket, like this... but it didn't work either

"customfield_10288": {
"self": "https://myorg.atlassian.net/rest/api/2/customFieldOption/123",
"value": "Parent Value",
"id": "123",
"child": {
"self": "https://myorg.atlassian.net/rest/api/2/customFieldOption/124",
"value": "Child Value",
"id": "124"
}
}

Can you please help??

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Kalyan Sattaluri
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 Champions.
May 29, 2024

Hello @David Silva 

Below is the syntax from docs - LINK

{
"fields": {
"customfield_11447": {
"value": "parent_option1",
"child": {
"value": "p1_child1"
}
}
}
}

 

Please modify your syntax and let us know if issues. Hope it helps. Thanks!

 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events