JIRA - Add component in createIssue

CoodiaCuh

New Member
Can someone tell me what is wrong in this createIssue? I want to add a component. So I am using \[code\]soapenc:arrayType="bean:RemoteComponent[1]"\[/code\] and adding \[code\]RemoteComponent\[/code\] and \[code\]name\[/code\]. What is the right way to do this? \[code\]<components xsi:type="jir:ArrayOf_tns1_RemoteComponent" soapenc:arrayType="bean:RemoteComponent[1]" xmlns:jir="https://server/rpc/soap/jirasoapservice-v2"> <RemoteComponent> <name>Some component - My Component I want to add to the issue</name> </RemoteComponent></components><soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.rpc.jira.atlassian.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <soapenv:Header/> <soapenv:Body> <soap:createIssue soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <in0 xsi:type="xsd:string">305JrgpNK8</in0> <in1 xsi:type="bean:RemoteIssue" xmlns:bean="http://beans.soap.rpc.jira.atlassian.com"> <affectsVersions xsi:type="jir:ArrayOf_tns1_RemoteVersion" soapenc:arrayType="bean:RemoteVersion[]" xmlns:jir="https://server/rpc/soap/jirasoapservice-v2"/> <assignee xsi:type="xsd:string">admin</assignee> <attachmentNames xsi:type="jir:ArrayOf_xsd_string" soapenc:arrayType="xsd:string[]" xmlns:jir="https://server /rpc/soap/jirasoapservice-v2"/> <components xsi:type="jir:ArrayOf_tns1_RemoteComponent" soapenc:arrayType="bean:RemoteComponent[1]" xmlns:jir="https://server/rpc/soap/jirasoapservice-v2"> <RemoteComponent> Some component - My Component I want to add to the issue </RemoteComponent> </components> <created xsi:type="xsd:dateTime">2012-05-20T20:08:59.000Z</created> <customFieldValues xsi:type="jir:ArrayOf_tns1_RemoteCustomFieldValue" soapenc:arrayType="bean:RemoteCustomFieldValue[]" xmlns:jir="https:// server/rpc/soap/jirasoapservice-v2"/> <description xsi:type="xsd:string">?</description> <duedate xsi:type="xsd:dateTime">2012-05-20T20:08:59.000Z</duedate> <environment xsi:type="xsd:string"></environment> <fixVersions xsi:type="jir:ArrayOf_tns1_RemoteVersion" soapenc:arrayType="bean:RemoteVersion[]" xmlns:jir="https://server/rpc/soap/jirasoapservice-v2"/> <key xsi:type="xsd:string"></key> <priority xsi:type="xsd:string">5</priority> <project xsi:type="xsd:string">TEST</project> <reporter xsi:type="xsd:string">user1</reporter> <resolution xsi:type="xsd:string"></resolution> <status xsi:type="xsd:string"></status> <summary xsi:type="xsd:string">Test for API</summary> <type xsi:type="xsd:string">3</type> <updated xsi:type="xsd:dateTime">2012-05-20T20:08:59.000Z</updated> <votes xsi:type="xsd:long">0</votes> </in1> </soap:createIssue> </soapenv:Body> </soapenv:Envelope>\[/code\]
 
Back
Top