Message from <Dave.Beliveau@sanmina-sci.com> via eLink<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Hello,
We use MS SQL Server 2000.
This auto livereport summarizes task list information by listing individual tasks, their parent, status, Instructions and Comments broken out into individual columns, Due Date, and Assignee.
The problem I have is that the report only returns tasks that are assigned and I would like it to return all tasks whether assigned or not.
Any help would be appreciated.
select (CASE a.status When 0 Then 'Pending' When 1 Then 'In Process' When 2 Then 'Issue' When 3 Then 'On Hold' When -1 Then 'Completed' When -2 Then 'Cancelled' Else 'Unknown' End) as Status, b.name as Parent, a.name as Task, SUBSTRING(a.extendedData,CHARINDEX('Instructions',a.extendedData)+15,CHARINDEX('>',a.extendedData) - CHARINDEX('Instructions',a.extendedData)- 16) AS Instructions,SUBSTRING(a.extendedData,19, CHARINDEX('Instructions',a.extendedData)-22) as Comments, KUAF.Name as Owner, a.DateDue as Due from DTree a, Dtree b, KUAF where a.parentid=b.dataid and a.SubType=206 and KUAF.ID=a.Assignedto and((a.Status=0) or (a.Status=1) or (a.Status=2) or (a.Status=3) or (a.Status=-1) or (a.Status=-2)) and (a.OwnerID IN (<task list objectID>)) order by a.ownerID DESC, a.status
Thanks,
Dave Beliveau