Tasks.GetMyGroupTasksAsync
Description
The API gets the list of tasks from the group in which the current user is involved.
Signature [C#]
Task<CRTasks> GetMyGroupTasksAsync(bool isInOutArgsRequired = true)
Properties
Input
| Property | Description | 
|---|---|
| isInOutArgsRequired | Specify true if you also want to retrieve the argument value. | 
Output
| Property | Description | 
|---|---|
| Task<CRTasks> | Returns task information from the group in which the current user is involved. | 
Remarks
Use the GetMyGroupTasksAsync API to get the task information list from the group where the current user is involved.
Example
C#
public void GetMyGroupTasks()
{
    IControlRoomContext context = LoginControlRoom();
    
    CRTasks cRTasks = Task.Run(() => context.Tasks.GetMyGroupTasksAsync()).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;
}