0

Get list of Project names w/ API3?

Is it possible to retrieve a list of project names using the new API?

2 comments

  • 0
    Avatar
    Isaac Reuben

    Hey Jake,

    There sure is!  Looks like:

    sg.find("Project",filters=[],fields=['name'])

    That finds all projects, and returns a list, including the name, like so:

    [{'type': 'Project', 'name': 'Demo Project', 'id': 63}, {'type': 'Project', 'name': 'Cowboy', 'id': 64}]

  • 0
    Avatar
    Jake Wilson

    Ahhh I didn't know you could leave the filters as an empty library/dict.  API3 is going to take a bit to get used to.  Thanks Issac!

Please sign in to leave a comment.