I am in a proof of concept with Zoho Projects and Zoho Analytics. Management wants to see how long tasks are with specific users in specific stages of a project. I came up with a query to give us a pseudotable (a view) which would neatly provide that information and more in Zoho Analytics. We can see at a rough level how user time is being spent on an issue, on a task, or in a stage of a project even though nobody is filling in timesheets.
Today the query no longer works. Analytics complained that Issues is not a valid column and told me to make it "Issues" if it contains a space. We only have one workspace and I'm definitely it, so it isn't that I've accidentally tried to run this in the wrong workspace.
On a hunch, I went to Data Sources. It looked like Zoho Projects was still okay there, but I synced with Zoho Projects.
When I tried the query again, that problem was gone but I got a new complaint:
Invalid column 'Stage' used in SELECT query.
I have not changed the data structure in Zoho Projects since the query worked, but it does not work any more. It's as though Zoho Analytics has forgotten about the data structure in Zoho Projects even though its daily fetches succeed. Why? How can I make it work again?
My query is:
SELECT "Projects"."Project Name" AS 'Project',
"Issues"."Bug Title" AS 'Issue', "Tasks"."Task
Name" AS 'Task', DATEDIFF(COALESCE("Tasks"."Completion
Date", GETDATE()), "Tasks"."Created Time") AS
"Days", "Tasks"."Time Spent So Far" AS 'Time So
Far', "Tasks"."Stage" AS 'Stage',
"Tasks"."Status" AS 'Status', "Tasks"."Completion
Percentage" AS 'Completion', "Users"."User Name" AS
'Primary Owner', "Users"."User ID" AS 'User ID' FROM (((("Users" JOIN "Tasks"
ON "Tasks"."Owner IDs"
LIKE "Users"."User ID" ) JOIN "Projects"
ON "Tasks"."Project ID"
= "Projects"."Project ID" ) JOIN "Issues"
ON "Projects"."Project ID"
= "Issues"."Project ID" ) JOIN "Task Issues
Mapping" ON "Issues"."Bug ID" = "Task Issues Mapping"."Issue
ID" ) WHERE 'User ID' NOT LIKE '184094000000031649' AND 'Primary
Owner' IS NOT NULL AND 'Primary Owner'
NOT LIKE '%Unassigned%' ORDER BY 'Project', 'Issue', 'Task'
If someone will educate me about this, I will be grateful.