Inflectra Customer Forums: SOAP API - Get tasks of a specific release (Thread)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 en-US(C) Copyright 2006-2024 Inflectra Corporation.support@inflectra.com/Computers/Software/Project_Management//Computers/Software/Quality_Assurance/KronoDesksupport@inflectra.comhttp://www.inflectra.com/kronodesk/forums/threads120/Support/Forum/spirateam/issues-questions/1221.aspxthreadId=1221Thomas Hein (hein@hoeft-wessel.com)SOAP Task ReleaseSOAP API - Get tasks of a specific releaseHi, 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 Wed, 27 May 2015 14:42:28 -04002015-06-24T11:20:08-04:00/Support/Forum/spirateam/issues-questions/1221.aspxmessageId=2131Jim R (donotreply5@kronodesk.net) Hi Thomas It should work, however you may need to change: remoteFilter.setPropertyName(objectF Hi Thomas It should work, however you may need to change: remoteFilter.setPropertyName(objectFactory.createRemoteTaskDescription("ReleaseId")); to remoteFilter.setPropertyName("ReleaseId"); Regards Jim Sat, 30 May 2015 13:15:31 -04002015-05-30T13:15:31-04:00/Support/Forum/spirateam/issues-questions/1221.aspx#reply2131messageId=2156Thomas Hein (hein@hoeft-wessel.com)Hi Jim, if I change remoteFilter.setPropertyName(objectFactory.createRemoteTaskDescriptionHi 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 Wed, 24 Jun 2015 11:20:08 -04002015-06-24T11:20:08-04:00/Support/Forum/spirateam/issues-questions/1221.aspx#reply2156