How to get incidents via REST API filtered by Area (or other custom field)?

Wednesday, May 16, 2018
Avatar

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

1 Replies
Thursday, May 17, 2018
Avatar
inflectra.jimx
re: tpeurako Wednesday, May 16, 2018

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

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Wednesday, May 16, 2018
  • Last Reply: Thursday, May 17, 2018
  • Replies: 1
  • Views: 1760