Hi,
Can someone tell me what is wrong in this createIssue? I want to add a component. So I am using soapenc:arrayType="bean:RemoteComponent[1]" and adding 'RemoteComponent' and 'name'. What is the right way to do this?
<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>
Community moderators have prevented the ability to post new answers.
Thanks Dieter. I tried that too. Didn't work. Donno what is wrong on here. Going crazy.
:components => [{'id' => '10914'}]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it does exist. I can manually add it after soap call makes an issue. And I can pull the list getComponents.
:components => [{'id' => '10914'},{'name' => 'System update'}]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wait. Did you mean, is component option is available while manually creating an issue? No its not there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So that means I cannot add component while creating an issue? So I have to make another updateIssue soap call to add a component.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hmmm. I am not the top level administrator to change that setting. I am only responsible one project and making API calls for it. I do have component field in edit issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Understood. Now another quick question - Do I use components in updateIssue just like the way I was trying in createIssue? If I get a good example then I it will be easy. Because I actually tried earlier to update components using updateIssue, I had same trouble there too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But i am not sure if it works since i'm not a perl developer and haven't verified it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Dieter for the help.
It never worked for me, I was using savon. and I decided to use jiraSOAP gem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seriously? No one has any idea on this? Atlassian's support is unresponsive too.
:components => {'components' => {'id' => '10786', 'name' => 'General Troubleshooting'}}
public class RemoteComponentextends AbstractNamedRemoteEntity
<th align="left" colspan="2">Constructor Summary</th>RemoteComponent() |
RemoteComponent(org.ofbiz.core.entity.GenericValue gv) |
RemoteComponent(java.lang.String id, java.lang.String name) |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does the component exist?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. Very much does exist. I can pull a list of components using getComponents
Here I added some example name.
But here is a real one from getComponents .
<multiRef id="id5" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:RemoteComponent" xmlns:ns4="http://beans.soap.rpc.jira.atlassian.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<id xsi:type="xsd:string">14924</id>
<name xsi:type="xsd:string">System Check - Version changed</name>
</multiRef>
The createIssue just ignores the conponent without any error and creates an issue.
I tried these too -
<RemoteComponent>
<name xsi:type="xsd:string" > System Check - Version changed </name>
</RemoteComponent>
<RemoteComponent>
<id xsi:type="xsd:int" >14924</id>
</RemoteComponent>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any documentation that shows the actual raw XML structure of all SOAP methods?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.