Define multi level select CF value in soapUI create request

Radek Kantor
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 Leaders.
April 15, 2012

Hi,

what is the correct syntax to define multi level select list custom field value in create issue request directly in soapUI? I used results from getIssue method:

<customFieldValues xsi:type="ns2:RemoteCustomFieldValue">
                  <customfieldId xsi:type="xsd:string">customfield_10243</customfieldId>
                  <key xsi:type="xsd:string" xsi:nil="true"/>
                  <values soapenc:arrayType="xsd:string[1]" xsi:type="soapenc:Array">
                     <values xsi:type="xsd:string">KC Hradec Kralove</values>
                  </values>
               </customFieldValues>
               <customFieldValues xsi:type="ns2:RemoteCustomFieldValue">
                  <customfieldId xsi:type="xsd:string">customfield_10243</customfieldId>
                  <key xsi:type="xsd:string">1</key>
                  <values soapenc:arrayType="xsd:string[1]" xsi:type="soapenc:Array">
                     <values xsi:type="xsd:string">Dvur Kralove</values>
                  </values>
               </customFieldValues>

but in create it returns exception:

<soapenv:Fault>
         <faultcode>soapenv:Server.userException</faultcode>
         <faultstring>com.atlassian.jira.rpc.exception.RemoteValidationException: {customfield_10243=Value: 'Dvur Kralove' is an invalid Option} : []</faultstring>
         <detail>
            <com.atlassian.jira.rpc.exception.RemoteValidationException xsi:type="ns1:RemoteValidationException" xmlns:ns1="http://exception.rpc.jira.atlassian.com"/>
            <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">WV420035</ns2:hostname>
         </detail>
      </soapenv:Fault>

1 answer

1 accepted

0 votes
Answer accepted
Radek Kantor
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 Leaders.
April 16, 2012

Problem solved, documentation is casual. As value for parent and child must be an option ID used, not string name representation.

Nathan May 22, 2013

I'm stuck with this same error (for a custom cascading select).

Could you explain how you did it in more detail? What does your final XML look like?

Thanks!

Suggest an answer

Log in or Sign up to answer