Statusing.CreateNewAssignmentWithWork Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an assignment that includes planned work to be performed.
public:
void CreateNewAssignmentWithWork(System::String ^ sName, Guid projGuid, Guid taskGuid, Guid assnGuid, Guid sumTaskGuid, DateTime dtStart, DateTime dtFinish, double actWork, bool fMilestone, bool fAddToTimesheet, bool fSubmit, System::String ^ sComment);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/office/project/server/webservices/Statusing/CreateNewAssignmentWithWork", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/office/project/server/webservices/Statusing/", ResponseNamespace="http://schemas.microsoft.com/office/project/server/webservices/Statusing/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public void CreateNewAssignmentWithWork(string sName, Guid projGuid, Guid taskGuid, Guid assnGuid, Guid sumTaskGuid, DateTime dtStart, DateTime dtFinish, double actWork, bool fMilestone, bool fAddToTimesheet, bool fSubmit, string sComment);
member this.CreateNewAssignmentWithWork : string * Guid * Guid * Guid * Guid * DateTime * DateTime * double * bool * bool * bool * string -> unit
Public Sub CreateNewAssignmentWithWork (sName As String, projGuid As Guid, taskGuid As Guid, assnGuid As Guid, sumTaskGuid As Guid, dtStart As DateTime, dtFinish As DateTime, actWork As Double, fMilestone As Boolean, fAddToTimesheet As Boolean, fSubmit As Boolean, sComment As String)
Parameters
- sName
- String
Name of the task.
- projGuid
- Guid
GUID of the project.
- taskGuid
- Guid
GUID of the task to which the assignment is linked. Use Guid.Empty to create a new task.
- assnGuid
- Guid
GUID for the new assignment.
- sumTaskGuid
- 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
- DateTime
Start date for the new assignment.
- dtFinish
- 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
- Double
Total work planned for the task. For a manual task, used to calculate the finish date.
- fMilestone
- Boolean
- fAddToTimesheet
- Boolean
Automatically add this assignment to the time sheet for the resource.
- fSubmit
- Boolean
Automatically submit the task for approval.
- sComment
- String
Comments to be sent to the status manager when approving the new request.
- Attributes
Remarks
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.
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
| CreateNewTaskOrAssignment | Allows a user to create a new task or assignment. Category permission. |