could you elaborate on what you are trying to do … code snippet ??
Have you tried setting the module to “Project” as Task is part of it ???