Support

  • 1.  API search for field-name:value pairs in non abstract items

    Posted 30 days ago
    Hi,

    i'm currently looking for a way to receive all testruns that are assigned to a user. I'm using /get abstractitems with "&contains="field-name:value" as described in the API Cookbook. It seems that it works fine for data-fields that are within the abstract item, like "Id". However when trying to search for "assignedTo:55" (where 55 is the user-id) it doesn't work at all. I can search for "55" and also receive the items i'm looking for, but also a lot of other unwanted items. Is there a way to get this working?

    Best regards
    Sven

    ------------------------------
    S Himer
    dspace
    Paderborn
    0525116380
    ------------------------------


  • 2.  RE: API search for field-name:value pairs in non abstract items

    Posted 14 days ago
    Hi Sven,

    In the API call you are using, the value you want should match the exact data that you're looking for in that field (e.g. string), not the user ID. For the "assignedTo" field that should be the first and last name of the user account. 


    I hope this helps!

    ------------------------------
    Carmen Santos
    Jama Software
    ------------------------------