Support

Expand all | Collapse all

Jama rest api documents related to date format.

  • 1.  Jama rest api documents related to date format.

    Posted 01-24-2017 05:17
    Jama rest api doc declares the particular date format for query.



    But when i filter activities using date [date=2017-01-16T13:10:52.000+0000]
    The API Response is  "message": "Date range query parameters must be ISO8601 compliant - \"yyyy-MM-dd'T'HH:mm:ss.SSSZ\" or \"yyyy-MM-dd'T'HH:mm:ssZ\". There may be 1 or 2 datetime values."

    And if i give date [date=2017-01-16T13:10:52.000Z] in this format filter works.
    can any anybody clarify what documentation conveys?




    ------------------------------
    Lokesh Singal
    OpsHub
    ------------------------------


  • 2.  RE: Jama rest api documents related to date format.

    Posted 01-27-2017 12:01
    Hi Lokesh,

    Here's an example:

    GET https://jtest.jamacloud.com/rest/latest/activities?project=20186&date=2012-02-20T17%3A07%3A32.000%2B0000

    Gets activities in project 20186 that are on or after 2012-02-20 17:07:32.000 GMT.

    A time format without the milliseconds also works:

    https://jtest.jamacloud.com/rest/latest/activities?project=20186&date=2012-02-20T17%3A07%3A32%2B0000

    Which is 2012-02-20 17:07:32 GMT.

    Note that if you send the parameter without URL Encoding it (in other words, just plain "date=2012-02-20T17:A07:32.000+0000"), the "+" will probably get decoded to a space character.

    ------------------------------
    Jason Short
    Jama Software
    ------------------------------