<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: SOAP API - Get tasks of a specific release (Thread)</title><description>Hi,  we’re using SpiraTeam 4.2.0.6 and we would like to use the (Java) SOAP API to get all tasks of a specific release. We tried it with the code below, but the filter doesn't work, taskRetrieve() always returns all tasks of all releases. How to get all tasks of a certain release?    ObjectFactory objectFactory; objectFactory = new ObjectFactory();  RemoteFilter remoteFilter = objectFactory.createRemoteFilter(); remoteFilter.setPropertyName(objectFactory.createRemoteTaskDescription("ReleaseId")); remoteFilter.setIntValue(objectFactory.createRemoteTaskReleaseId(release.getReleaseId().getValue()));  ArrayOfRemoteFilter remoteFilterArray = objectFactory.createArrayOfRemoteFilter(); remoteFilterArray.getRemoteFilter().add(remoteFilter);  taskArray = this.spiraImportExport.taskRetrieve(remoteFilterArray, remoteSort, 0, Integer.MAX_VALUE);   Regards Thomas  &#xD;
&#xD;
</description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/issues-questions/1221.aspx</link><item><guid isPermaLink="false">threadId=1221</guid><author>Thomas Hein (hein@hoeft-wessel.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">soap</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> api</category><title>SOAP API - Get tasks of a specific release</title><description>Hi,  we’re using SpiraTeam 4.2.0.6 and we would like to use the (Java) SOAP API to get all tasks of a specific release. We tried it with the code below, but the filter doesn't work, taskRetrieve() always returns all tasks of all releases. How to get all tasks of a certain release?    ObjectFactory objectFactory; objectFactory = new ObjectFactory();  RemoteFilter remoteFilter = objectFactory.createRemoteFilter(); remoteFilter.setPropertyName(objectFactory.createRemoteTaskDescription("ReleaseId")); remoteFilter.setIntValue(objectFactory.createRemoteTaskReleaseId(release.getReleaseId().getValue()));  ArrayOfRemoteFilter remoteFilterArray = objectFactory.createArrayOfRemoteFilter(); remoteFilterArray.getRemoteFilter().add(remoteFilter);  taskArray = this.spiraImportExport.taskRetrieve(remoteFilterArray, remoteSort, 0, Integer.MAX_VALUE);   Regards Thomas  &#xD;
&#xD;
</description><pubDate>Wed, 27 May 2015 14:42:28 -0400</pubDate><a10:updated>2015-06-24T11:20:08-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/1221.aspx</link></item><item><guid isPermaLink="false">messageId=2131</guid><author>Jim R (donotreply5@kronodesk.net)</author><title>&#xD;
Hi Thomas  It should work, however you may need to change:    remoteFilter.setPropertyName(objectF</title><description>&#xD;
Hi Thomas  It should work, however you may need to change:    remoteFilter.setPropertyName(objectFactory.createRemoteTaskDescription("ReleaseId"));   to    remoteFilter.setPropertyName("ReleaseId");    Regards Jim &#xD;
&#xD;
</description><pubDate>Sat, 30 May 2015 13:15:31 -0400</pubDate><a10:updated>2015-05-30T13:15:31-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/1221.aspx#reply2131</link></item><item><guid isPermaLink="false">messageId=2156</guid><author>Thomas Hein (hein@hoeft-wessel.com)</author><title>Hi Jim,  if I change          remoteFilter.setPropertyName(objectFactory.createRemoteTaskDescription</title><description>Hi Jim,  if I change          remoteFilter.setPropertyName(objectFactory.createRemoteTaskDescription("ReleaseId"));  to          remoteFilter.setPropertyName("ReleaseId");   I get the error "incompatible types: String cannot be converted to JAXBElement ".  Regards Thomas  &#xD;
&#xD;
</description><pubDate>Wed, 24 Jun 2015 11:20:08 -0400</pubDate><a10:updated>2015-06-24T11:20:08-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/1221.aspx#reply2156</link></item></channel></rss>