Skip to main content
Version: Current

TaskServices.ReassignTasksAsync

Description

The API re-assigns the specified task IDs to the provided user ID inside the AI Command Center.

Signature [C#]

Task ReassignTasksAsync(int userId, int[] taskIds)

Properties

Input

PropertyDescription
userIdSpecify the user ID to re-assign the task.
taskIdsSpecify the task IDs to be assigned to a user.

Remarks

Use ReassignTasksAsync API to re-assign the tasks to a specified user from the connected AI Command Center.

Example

C#
public void ReAssignTasks()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");

int userId = 1;
int[] taskIds = {1,2};

Task.Run(() => context.Tasks.ReassignTasksAsync(userId, taskIds)).Wait();
}
C#
public IControlRoomContext LoginControlRoom()
{
IControlRoomContext context;
string connectionString;

connectionString = "ServerUrl=https://demo.onnitellibuddies.com;UserName=demoadmin;Password=password";
context = new ControlRoomContext(connectionString);

context.Open();
return context;
}