public void ReAssign( long taskId, User newExecutor, DateTime startDate, DateTime endDate, TaskPriority priority )
Reassign task
Syntax
public void ReAssign( long taskId, User newExecutor, DateTime startDate, DateTime endDate, TaskPriority priority )
Parameters
- taskId
- Type: System Int64
ID of the task for reassigning
- newExecutor
- Type: User
New executor. Object. Access path: PublicAPI.Portal.Security.User
- startDate
- Type: System DateTime
Start date
- endDate
- Type: System DateTime
End date
- priority
- Type: TaskPriority
Priority. Enumeration. Access path: PublicAPI.Enums.Tasks.TaskPriority
Remarks
Examples
//load the user by ID var newExecutor = PublicAPI.Portal.Security.User.Load(3); //get the "Regular" task priority var priority = PublicAPI.Enums.Tasks.TaskPriority.Meduim; //task start date var startDate = DateTime.Now; //task end date var endDate = DateTime.Now.AddDays(5); //reassign the task PublicAPI.Portal.TaskBase.Task.ReAssign(taskId, newExecutor, startDate, endDate, priority);
See Also