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

Wednesday, May 16, 2018 11:13:11 AM

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 2:34:34 PM
Avatar
re: tpeurako on Wednesday, May 16, 2018 11:13:11 AM

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

Statistics
  • Started: Wednesday, May 16, 2018 11:13:11 AM
  • Last Reply: Thursday, May 17, 2018 2:34:34 PM
  • Replies: 1
  • Views: 212