Statusing::CreateNewAssignmentWithWork method
Creates an assignment that includes planned work to be performed.
Namespace: WebSvcStatusing
Assembly: ProjectServerServices (in ProjectServerServices.dll)
Parameters
- sName
- Type: System.String
Name of the task.
- projGuid
- Type: System.Guid
GUID of the project.
- taskGuid
- Type: System.Guid
GUID of the task to which the assignment is linked. Use Guid.Empty to create a new task.
- assnGuid
- Type: System.Guid
GUID for the new assignment.
- sumTaskGuid
- Type: System.Guid
GUID for the summary task under which the new task will be created. If you are not creating a new task, use Guid.Empty.
- dtStart
- Type: System.DateTime
Start date for the new assignment.
- dtFinish
- Type: System.DateTime
Finish date for the new assignment. If dtFinish is set as DateTime.MinValue and actWork = 0, a 1-day task is created that starts on the dtStart date.
- actWork
- Type: System.Double
Total work planned for the task. For a manual task, used to calculate the finish date.
- fMilestone
- Type: System.Boolean
- fAddToTimesheet
- Type: System.Boolean
Automatically add this assignment to the time sheet for the resource.
- fSubmit
- Type: System.Boolean
Automatically submit the task for approval.
- sComment
- Type: System.String
Comments to be sent to the status manager when approving the new request.
Creating an assignment follows one of two scenarios: adding a resource to a current work task, or creating a task under a summary task. The following parameter list indicates which parameters are used in each scenario.
Parameter | Create New Task | Add to Existing Task |
|---|---|---|
sName | Yes | No |
projGuid | Yes | Yes |
taskGuid | No | Yes |
assnGuid | Yes | Yes |
sumTaskGuid | Yes | No |
dtStart | Yes | Yes |
dtFinish | Yes | Yes |
fAddToTimesheet | Yes | Yes |
fSubmit | Yes | Yes |
sComment | Yes | Yes |
CreateNewAssignment submits multiple jobs to the Project Server Queuing Service. The jobs can include Timesheet queue jobs, in which case the CorrelationGUID property is equal to the TS_UID property.
CreateNewAssignment submits multiple jobs to the Project Server Queuing Service. The jobs can include Timesheet queue jobs, in which case the CorrelationGUID property is equal to the TS_UID property.
Project Server Permissions
Permission | Description |
|---|---|
Allows a user to create a new task or assignment. Category permission. |