Clarity

 View Only
  • 1.  REST api for getting team allocations

    Posted Jan 17, 2017 10:26 AM

    I want to get list of projects allocated to a resource using REST. However, the sample requests shows that we need to provide the project internal ID. I tried the below query but it doesn't work.

     

    http://<my_ca_ppm_url>/ppm/rest/v1/projects?filter=(teams.resource = john.doe)

     

    Any ideas on how to provide the filter expression?

     

    Thanks,

    Leo.



  • 2.  Re: REST api for getting team allocations

    Posted Jan 17, 2017 11:47 AM

    Whilst we can pull the team of a project, in 15.1 doesn't appear we can pull all the project allocations a resource is associated with.

    curl -X GET --header "Accept: application/json" "http://MY_SERVER/ppm/rest/v1/projects/PROJECT_ID/teams"

    Also I believe use of the rest API is not supported at this time.

    So I'd advise going through the webservice route, i.e. create a simple NSQL query with a user parameter