Skip Navigation LinksHome Page > Forums > SpiraTest Forums > SpiraTest Issues & Questi... > How to get incidents via ...
Hi,
I'm trying to get incidents from a project that only have a specific Area or Component field. How should I do this?
Best regards,
Tuomas Peurakoski
Hi Tuomas,
You can filter the results by any of the fields using this method:
http://api.inflectra.com/Spira/Services/v5_0/RestServiceOperation.aspx?uri=projects%2f%7bproject_id%7d%2fincidents%2fsearch%3fstart_row%3d%7bstart_row%7d%26number_rows%3d%7bnumber_rows%7d%26sort_by%3d%7bsort_by%7d&method=POST
You need to post a collection of filters, using the names of the fields:
[ {"PropertyName": "Custom_01", "MultiValue": [1,2,3] }, {"PropertyName": "Custom_02", "IntValue": 1 } ]
Regards
Jim
And if you have any questions, please email or call us at +1 (202) 558-6885