<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: MultivalueFilter is not working (Thread)</title><description>&#xD;
Hi,&#xD;
&#xD;
    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.    </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/spiratest/issues-questions/1423.aspx</link><item><guid isPermaLink="false">threadId=1423</guid><author>Abhijit Banerjee (abanerjee@onenetwork.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">filtering</category><title>MultivalueFilter is not working</title><description>&#xD;
Hi,&#xD;
&#xD;
    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.    </description><pubDate>Thu, 24 Mar 2016 11:39:23 -0400</pubDate><a10:updated>2016-03-29T13:37:44-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1423.aspx</link></item><item><guid isPermaLink="false">messageId=2583</guid><author>Inflectra Sarah (donotreply6@kronodesk.net)</author><title>&#xD;
Hi Abhijit&#xD;
&#xD;
    For the TestSetId field I would instead use the IntValue filter:               L</title><description>&#xD;
Hi Abhijit&#xD;
&#xD;
    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 </description><pubDate>Fri, 25 Mar 2016 13:30:28 -0400</pubDate><a10:updated>2016-03-25T13:30:28-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1423.aspx#reply2583</link></item><item><guid isPermaLink="false">messageId=2587</guid><author>Abhijit Banerjee (abanerjee@onenetwork.com)</author><title>&#xD;
Hi Sarah,&#xD;
&#xD;
    Thanks for your reply.   So if there is multiple test set ids then what I am supp</title><description>&#xD;
Hi Sarah,&#xD;
&#xD;
    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  </description><pubDate>Fri, 25 Mar 2016 15:42:17 -0400</pubDate><a10:updated>2016-03-25T15:42:17-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1423.aspx#reply2587</link></item><item><guid isPermaLink="false">messageId=2588</guid><author>David J (adam.sandman+support@inflectra.com)</author><title>&#xD;
Hi Abhijit  For the test set field you cannot use a multi-value filter I'm afraid, you'd have to l</title><description>&#xD;
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 &#xD;
&#xD;
</description><pubDate>Fri, 25 Mar 2016 17:58:59 -0400</pubDate><a10:updated>2016-03-25T17:58:59-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1423.aspx#reply2588</link></item><item><guid isPermaLink="false">messageId=2589</guid><author>Abhijit Banerjee (abanerjee@onenetwork.com)</author><title>&#xD;
Hi Adam,&#xD;
&#xD;
    It's not just Test Set Ids , for Test Case Ids also it is not working. The project</title><description>&#xD;
Hi Adam,&#xD;
&#xD;
    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 </description><pubDate>Tue, 29 Mar 2016 05:42:57 -0400</pubDate><a10:updated>2016-03-29T05:42:57-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1423.aspx#reply2589</link></item><item><guid isPermaLink="false">messageId=2590</guid><author>David J (adam.sandman+support@inflectra.com)</author><title>&#xD;
Hi Abhijit  We have logged it in our enhancement tracker, and it will added in the future. However</title><description>&#xD;
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 &#xD;
&#xD;
</description><pubDate>Tue, 29 Mar 2016 13:37:44 -0400</pubDate><a10:updated>2016-03-29T13:37:44-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1423.aspx#reply2590</link></item></channel></rss>