public void ReAssign( long taskId, User newExecutor, DateTime startDate, TaskPriority priority, string comment )
Reassign task
Syntax
public void ReAssign( long taskId, User newExecutor, DateTime startDate, TaskPriority priority, string comment )
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
- priority
- Type: TaskPriority
Priority. Enumeration. Access path: PublicAPI.Enums.Tasks.TaskPriority
- comment
- Type: System String
Comment
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; //added comment var comment = "Comment"; //reassign the task PublicAPI.Portal.TaskBase.Task.ReAssign(taskId, newExecutor, startDate, endDate, priority, comment);
See Also