Skip to main content

Tasks.GetMyTeamCompletedTasksAsync

Description

The API gets the list of completed tasks from the team where the current user is involved.

Signature [C#]

Task<CRTasks> GetMyTeamCompletedTasksAsync()

Properties

Output

PropertyDescription
Task<CRTasks>Returns completed tasks information from the team in which the current user is involved.

Remarks

Use GetMyTeamCompletedTasksAsync API to get the list of completed tasks information from the team where the current user is involved.

Example

C#
public void GetMyTeamCompletedTasks()
{
IControlRoomContext context = LoginControlRoom();

CRTasks cRTasks = Task.Run(() => context.Tasks.GetMyTeamCompletedTasksAsync()).Result;
foreach (CRTaskInfo taskData in cRTasks.Data)
System.Console.WriteLine("Task Name: " + taskData.Name);
}
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;
}