REST API: Is it possible to use contains() XPath function to filter work items?
![]()
Is it possible to use contains() XPath function to filter work items? Is this supported?
I would like to filter something like: https://host:port/jazz/rpt/repository/workitem?fields=workitem/workItem[contains(summary, '..')] |
Accepted answer
![]()
The Reportable REST API only uses a subset of the XPath 2.0, and I can't see any mention of the "contains" function in the whitepaper (in fact, it says "3.5.1 Value Comparisons" is not suppported), so I believe the contains() function is not supported. I will get a "CRRED0121E: Invalid filter condition" error if I attempt to use "contains" as a filter.
Matei Florescu selected this answer as the correct answer
Comments yes, I actually reached the same conclusion, but wanted to make sure I am correct. Thank for the answer,
|