Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > SpiraTeam Issues & Qu... > APIs that searches, how b...
There are APIs that allows search. Example:
POST: projects/{project_id}/incidents/search?start_row={start_row}&number_rows={number_rows}&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:
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] } ]
I'd log a support ticket for more specific assistance.
Regards
David
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"?
I need a filter, that filters requirements by Component AND "Requested Release" (our custom field).
I have tried next bodies, but it doesn't work as AND logic.
[ {"ComponentId": 446, "PropertyName": "Requested Release", "IntegerValue ": 2630 } ]
[ {"ComponentId": 446}, { "PropertyName": "Requested Release", "IntegerValue ": 2630 } ]
What should I change there?
Thanks!
And if you have any questions, please email or call us at +1 (202) 558-6885