How do Assignments work?
I'm wanting to get the estimated hours like the Budgeted Time & Cost screen.
I can get the projects.
Then the time entries for the project.
Then the tasks for each time entry.
But this only gives time actually entered.
It looks like assignments are the thing that links project, tasks and employee together because the ItemId can be of many different types. But with only having:
I can't see how we are supposed to use these to get the relationships.
Can anyone help please?
Robert, the URI that returns a list of all assignments that have that requested Employee assigned maybe of use. Here is some information on it: http://apideveloper.dovico.com/Assignment#Get%20all%20assignments%20that%20have%20the%20requested%20Employee%20assigned
I have got the same problem(the comment from Gerard is correct but does not solve the problem) but to get to employee level you need to manually enter the TaskID. How to retrieve all information in one query like this can be done in TimeSheet or Expenses
C. Gerard Gallant commented
You are correct in looking at the Assignments to retrieve information like what is displayed in the Budgeted Time & Costs screen.
Assignments are a tree structure indicating which Employees are assigned to which Tasks, which Tasks are assigned to which Task Groups or Projects, which Projects are assigned to which Clients (similar to what you see when you go to the Project Assignments screen)
The request for assignments returns the top-most items in the tree first (Clients as well as any Projects that have no Clients associated with them)
If the GetAssignmentsURI is 'N/A' it means that there are no child items for that assignment. If the value is not 'N/A', you can use that URI to drill down on that assignment item to see its immediate assignment children (e.g. If you drill down on a Client assignment you will get a list of all Projects that are under that Client)
The Estimated Hours will be found at the bottom-most level on the employee assignments (the value will be 'N/A' at all other levels in the returned assignment tree)
Each returned assignment item contains an AssignmentID value. The first character indicates the type of data that the assignment represents ('C' for Client, 'P' for Project, 'G' for Task Group, 'T' for Task, and 'E' for Employee) which may help in determining which assignment type you're looking at.
The GetItemURI is a URI you can use to get more information about the type of data represented by that assignment (e.g. if the assignment is a Client type then the URI will give you that Client’s details)