ReportsREST API date filter TimeZone error
While trying to obtain information about allocations via REST calls, I stumbled across a problem with the date handling (e.g. the modified date) of the REST service.
Link to the documentation ("Examples" section): https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#Examples According to the 4th example in the documentation, I can filter a work item by date, using a compare function: workitem/workItem[modified > 2010-12-07T10:10:53.000-0500]/(id|summary) This works completely fine. However, since I live in the GMT+1 time zone, i need to add a +0100 instead of a -0500 to the date string, which results in an error: Error 500: CRRED0125E: Invalid value: 0100. Expected "and" or "or" The problem is the +, which the REST call interprets wrong in this case. Is there a workaround for this issue, or is it a bug? Thanks |
One answer
I have found a workaround for the problem. I simply need to encode the "+" string as "%2B" (url encoding for "+"), then it works fine.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.