0

I'm using AsanaNet - which works great, but task assignee is always null, even though the Asana console shows these tasks as having an assignee.

var asana = new Asana("zzzzzzzzzzzzzzzzzzzzzzzzzzzz", AuthenticationType.Basic, errorCallback);
            asana.GetWorkspaces(o =>
            {
                foreach (AsanaWorkspace sp in o)
                {
                    asana.GetUsersInWorkspace(sp, u =>
                        {
                            foreach (AsanaUser user in u)
                            {
                                //Get a List of WORKSPACES
                                asana.GetTasksInWorkspace(sp, user, t =>
                                    {
                                        foreach (AsanaTask task in t)
                                        {
                                            asana.GetProjectsOnATask(task, p =>
                                                {
                                        foreach (AsanaProject project in p)
                                        {
                                            bool bSuccess = ProcessTask(task, project);
                                        }
                                                }).Wait();
                                        }
                                    }).Wait();
                            }
                        }).Wait();
                }
            }).Wait();
user3593282
  • 59
  • 1
  • 1
  • The solution was to add this to the query string: tasks?opt_fields=name,id,assignee,notes&assignee=..... Now the Assignee shows up as the user ID number – user3593282 May 01 '14 at 16:42
  • That's odd, the default fields returned if you do not specify `opt_fields` should include assignee by default. – agnoster May 02 '14 at 14:17

0 Answers0