Forums

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

How to create Test Issue requiring a Cascading Select field with multiple levels

Joe_Byrne February 14, 2020

Hi, 

I am trying to use the multipart request to upload a test execution report.  I want the execution to include a testInfo file so that it can also create Test Issues.  The problem is one of the customfields is a multi cascade select field with the following structure:

'<customfield id="customfield_15213" key="com.atlassian.jira.plugin.system.customfieldtypes:cascadingselect">

<customfieldname>Product Line and Product Name</customfieldname><customfieldvalues>

<customfieldvalue key="61839" cascade-level=""><![CDATA[ Associate Experience ]]></customfieldvalue>

<customfieldvalue key="61945" cascade-level="1"><![CDATA[ Enterprise Communication ]]></customfieldvalue>

</customfieldvalues>

</customfield>

 

 

This is my attempt at the testInfo File, highlighting the problem line:

{
"fields": {
"description": "Test upload in JIRA",
"priority" : {
"id": "10000"
},

"customfield_25380" : "70642",
"customfield_23780" : "61862",
"customfield_15213": {"value": "Associate Experience", "child": {"value":"Enterprise Communication"} }
}
}

I get the following error or some variation of it depending on whether I use the ID instead of value or whether I change the value of those shown above. I've tried using the multiselect layout among other things to no avail.

"error":[{"messages":["Could not find valid 'id' or 'value' in the Parent Option object."

It feels like I need to specify the parent(Product Line and Product Name) and the 2 child cascade levels but just don't know how to syntax it.

Help very much appreciated

Regards

Joe

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events