Expand all | Collapse all

Jama API search by global ID

  • 1.  Jama API search by global ID

    Posted 02-07-2020 08:00

    Is there an endpoint in the Jama API that allows users to search by the global ID? Currently, the only way I seem to be able to find an item by global ID is by using the GET method for abstract items and using the contains parameter to search for a specific global ID. This would seem to work for most cases but if by some chance that another item has a reference to that global ID somewhere in its fields. (e.g. searching for GID-1 but GID-2 talks about GID-1 in it's description). Please let me know if there is a solution, thank you for your time!

    Emmit Parubrub

  • 2.  RE: Jama API search by global ID

    Posted 02-07-2020 11:45
    Hi Emmit

    We in support would recommend searching for the Unique ID instead. If you utilize Reuse & Sync you'll likely have the problem you mentioned. If you'd still prefer to search for the GID, the abstract items endpoint that you're already calling is the best way, currently, and anything else would require some custom scripting to exclude results after the call had been made. That would be something you would request from your Account Manager.

    Hope this helped answer your question, let us know if you need anymore details.

    Thank you

    Godiva Hunt

  • 3.  RE: Jama API search by global ID

    Posted 02-10-2020 14:10

    here is an extract from a vba macro I use:
    request = "/rest/latest/abstractitems?project=" + project + "&contains=%22" + Field + "%3A" + searchValue + "%22"

    Field is a variable that holds the fieldname.

    Harald Hotz-Behofsits
    Frequentis AG

  • 4.  RE: Jama API search by global ID

    Posted 02-11-2020 08:57
    Here a sample url that I created with jama_url/api-docs

    so having the gid GID-2487 in a description elsewhere does not return that.

    the readable content in the contains-field is

    Harald Hotz-Behofsits
    Frequentis AG