Inflectra Customer Forums: MultivalueFilter is not working (Thread) Hi, I am trying to filter test runs based on some test set ids. I have created a multivalue filter for that based on some examples I found in the internet.But while retrieving, this filter is not working. Single value filter is working fine.I have pasted the code for multivalue filter below : List remoteFilters = new ArrayList (); RemoteFilter remoteFilter = new RemoteFilter(); MultiValueFilter multiFilter = new MultiValueFilter(); multiFilter.setIsNone(false); multiFilter.setValues(new int[] {59313,59323}); remoteFilter.setPropertyName("TestSetId"); remoteFilter.setMultiValue(multiFilter); remoteFilters.add(remoteFilter); RemoteFilter remoteFilterArray[] = new RemoteFilter[remoteFilters.size()]; RemoteTestRun[] nextChunk = spira.testRun_Retrieve(remoteFilterArray, new RemoteSort(), rowNum, chunkSize); If you find anything wrong with the code or anything I am doing wrong then let me know. Thanks. 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/spiratest/issues-questions/1423.aspxthreadId=1423Abhijit Banerjee (abanerjee@onenetwork.com)SpiraTest MultiValueFilterMultivalueFilter is not working Hi, I am trying to filter test runs based on some test set ids. I have created a multivalue filter for that based on some examples I found in the internet.But while retrieving, this filter is not working. Single value filter is working fine.I have pasted the code for multivalue filter below : List remoteFilters = new ArrayList (); RemoteFilter remoteFilter = new RemoteFilter(); MultiValueFilter multiFilter = new MultiValueFilter(); multiFilter.setIsNone(false); multiFilter.setValues(new int[] {59313,59323}); remoteFilter.setPropertyName("TestSetId"); remoteFilter.setMultiValue(multiFilter); remoteFilters.add(remoteFilter); RemoteFilter remoteFilterArray[] = new RemoteFilter[remoteFilters.size()]; RemoteTestRun[] nextChunk = spira.testRun_Retrieve(remoteFilterArray, new RemoteSort(), rowNum, chunkSize); If you find anything wrong with the code or anything I am doing wrong then let me know. Thanks. Thu, 24 Mar 2016 11:39:23 -04002016-03-29T13:37:44-04:00/Support/Forum/spiratest/issues-questions/1423.aspxmessageId=2583Inflectra Sarah (donotreply6@kronodesk.net) Hi Abhijit For the TestSetId field I would instead use the IntValue filter: L Hi Abhijit For the TestSetId field I would instead use the IntValue filter: List remoteFilters = new ArrayList (); RemoteFilter remoteFilter = new RemoteFilter(); remoteFilter.setPropertyName("TestSetId"); remoteFilter.setIntValue( 59313 ); remoteFilters.add(remoteFilter); RemoteFilter remoteFilterArray[] = new RemoteFilter[remoteFilters.size()]; RemoteTestRun[] nextChunk = spira.testRun_Retrieve(remoteFilterArray, new RemoteSort(), rowNum, chunkSize); Regards Sarah Fri, 25 Mar 2016 13:30:28 -04002016-03-25T13:30:28-04:00/Support/Forum/spiratest/issues-questions/1423.aspx#reply2583messageId=2587Abhijit Banerjee (abanerjee@onenetwork.com) Hi Sarah, Thanks for your reply. So if there is multiple test set ids then what I am supp Hi Sarah, Thanks for your reply. So if there is multiple test set ids then what I am supposed to do. One way is to loop through the TestSetIds and then retrieve the test cases using single value filter. But I just wanted to know whether multi value filter is not working me only or it is not working for everyone or am I missing something. I'll be very glad if someone can guide me through. Thanks, Abhijit Fri, 25 Mar 2016 15:42:17 -04002016-03-25T15:42:17-04:00/Support/Forum/spiratest/issues-questions/1423.aspx#reply2587messageId=2588David J (support1@inflectra.com) Hi Abhijit For the test set field you cannot use a multi-value filter I'm afraid, you'd have to l Hi Abhijit For the test set field you cannot use a multi-value filter I'm afraid, you'd have to loop and query for each one and then aggregate the results. Regards Adam Fri, 25 Mar 2016 17:58:59 -04002016-03-25T17:58:59-04:00/Support/Forum/spiratest/issues-questions/1423.aspx#reply2588messageId=2589Abhijit Banerjee (abanerjee@onenetwork.com) Hi Adam, It's not just Test Set Ids , for Test Case Ids also it is not working. The project Hi Adam, It's not just Test Set Ids , for Test Case Ids also it is not working. The project I am working on is pretty big , so calling web service more than once is not feasible in terms of cost. I guess there is some issue with this MultiValue Filter. If you can check and fix it then it'll be very helpful. Thanks, Abhijit Tue, 29 Mar 2016 05:42:57 -04002016-03-29T05:42:57-04:00/Support/Forum/spiratest/issues-questions/1423.aspx#reply2589messageId=2590David J (support1@inflectra.com) Hi Abhijit We have logged it in our enhancement tracker, and it will added in the future. However Hi Abhijit We have logged it in our enhancement tracker, and it will added in the future. However I do not have a definite timeline. Regards Adam Tue, 29 Mar 2016 13:37:44 -04002016-03-29T13:37:44-04:00/Support/Forum/spiratest/issues-questions/1423.aspx#reply2590