Skip to main content
Version: Current

TaskServices.TakeAssignmentAsync

Description​

The API takes the specified task assignment from the AI Command Center.

Signature [C#]​

Task TakeAssignmentAsync(int taskId)

Properties​

Input​

PropertyDescription
taskIdSpecify the task ID to be assigned to a user.

Remarks​

Use TakeAssignmentAsync API to take the task assignment from the connected AI Command Center.

Example​

C#
public void TakeAssignmentTask()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");
int taskId = 1;

Task.Run(() => context.Tasks.TakeAssignmentAsync(taskId)).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;
}