<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: APIs that searches, how body is constructed? (Thread)</title><description> There are APIs that allows search. Example:  POST: projects/{project_id}/incidents/search?start_row={start_row}&amp;number_rows={number_rows}&amp;sort_by={sort_by}  Description  Searches the list of incidents in the project. This operation allows you to specify a list of filters, the sort column (optional) and the pagination range.     Several questions:   What to send in a body to let it filter by custom fields? For example, I have a custom field with multiple list values (major releases where a fix was deployed) and I need to get incidents that have QA and not Prod there? In other words I am preparing release notes and would like to see the defference between Prod (was not deployed there) and QA (was deployed there).  How to write OR logic in a body? Example: I need requirements with status Requested or Design approval?  </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/2693.aspx</link><item><guid isPermaLink="false">threadId=2693</guid><author>Ilia Poliakov (ilya.polyakov@edetek.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">api</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> search</category><title>APIs that searches, how body is constructed?</title><description> There are APIs that allows search. Example:  POST: projects/{project_id}/incidents/search?start_row={start_row}&amp;number_rows={number_rows}&amp;sort_by={sort_by}  Description  Searches the list of incidents in the project. This operation allows you to specify a list of filters, the sort column (optional) and the pagination range.     Several questions:   What to send in a body to let it filter by custom fields? For example, I have a custom field with multiple list values (major releases where a fix was deployed) and I need to get incidents that have QA and not Prod there? In other words I am preparing release notes and would like to see the defference between Prod (was not deployed there) and QA (was deployed there).  How to write OR logic in a body? Example: I need requirements with status Requested or Design approval?  </description><pubDate>Mon, 17 Oct 2022 17:39:12 -0400</pubDate><a10:updated>2022-12-15T13:54:07-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2693.aspx</link></item><item><guid isPermaLink="false">messageId=5771</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> Hi Ilya  In general, the body to post for filtering is an array of  multiple  individual filter cla</title><description> Hi Ilya  In general, the body to post for filtering is an array of  multiple  individual filter clauses  that are ANDed. Then for a custom property that has  multiple values , you can have a list of possible matching values that are ORed.  Something like:   [
 {
  "PropertyName": "Custom_01",
  "MultiValue ": [1,3,4]
 },
 {
  "PropertyName": "Custom_02",
  "MultiValue ": [2,8,10]
 }
]   Id log a support ticket for more specific assistance.  Regards  David </description><pubDate>Thu, 20 Oct 2022 21:42:06 -0400</pubDate><a10:updated>2022-10-20T21:42:06-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2693.aspx#reply5771</link></item><item><guid isPermaLink="false">messageId=5776</guid><author>Ilia Poliakov (ilya.polyakov@edetek.com)</author><title> Hi, David,  Thanks for the answer!  Is it possible to construct next logic inside custom property t</title><description> Hi, David,  Thanks for the answer!  Is it possible to construct next logic inside custom property to receive where custom property  multilist has 1 but not 2? </description><pubDate>Mon, 24 Oct 2022 16:53:03 -0400</pubDate><a10:updated>2022-10-24T16:53:03-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2693.aspx#reply5776</link></item><item><guid isPermaLink="false">messageId=5826</guid><author>Ilia Poliakov (ilya.polyakov@edetek.com)</author><title> I need a filter, that filters requirements by Component AND Requested Release (our custom field).  </title><description> I need a filter, that filters requirements by Component AND Requested Release (our custom field).     I have tried next bodies, but it doesnt work as AND logic.   [
{"ComponentId": 446,
"PropertyName": "Requested Release",
"IntegerValue ": 2630
}
]    [
{"ComponentId": 446},
{
"PropertyName": "Requested Release",
"IntegerValue ": 2630
}
]   What should I change there?      Thanks! </description><pubDate>Thu, 15 Dec 2022 13:54:07 -0500</pubDate><a10:updated>2022-12-15T13:54:07-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2693.aspx#reply5826</link></item></channel></rss>