Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link
I have found a workaround for the problem. I simply need to encode the "+" string as "%2B" (url encoding for "+"), then it works fine.

1 vote

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 09 '13, 5:50 a.m.

Question was seen: 6,535 times

Last updated: Apr 09 '13, 6:15 a.m.

Confirmation Cancel Confirm