It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

201 views 4 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you