JungleBoy said:
Hi ,
is there a way to see time which has been approved by the project manager
and time which was actually logged by a resource. I created a pivot table
with Actual Work (hourses closked by resource) and Actual Work protected
(approved hours), but it gives the same figure and I can se ethat there is
still time which is unapproved.
Is these any other field or way I can find this out.
Thanks
We had the same need ... I worked with our SQL DBA, who wrote the following
queries for Project Server 2003:
/*****************************************************/
/** List all Submitted but pending tasks by manager **/
/** for ONLY active resources. **/
/*****************************************************/
Select b.RES_NAME as MANAGER,
d.PROJ_NAME,
c.RES_NAME as RESOURCE,
a.TASK_NAME,
a.WASSN_SEND_UPDATE_DATE
from dbo.MSP_WEB_ASSIGNMENTS as a
inner join dbo.MSP_WEB_RESOURCES as b
on a.WRES_ID_MGR = b.WRES_ID
inner join dbo.MSP_WEB_RESOURCES as c
on a.WRES_ID = c.WRES_ID
inner join dbo.MSP_WEB_PROJECTS as d
on a.WPROJ_ID = d.WPROJ_ID
Where a.WASSN_SEND_UPDATE_NEEDED = 1
and a.WASSN_ACTUALS_PENDING = 1
and a.WASSN_UPDATE_STATUS = 1
and a.WASSN_SEND_UPDATE_DATE IS NOT NULL
and c.WRES_IS_ENABLED = 1 -- Active Flag
order by b.RES_NAME, d.PROJ_NAME, c.RES_NAME
/*****************************************************/
/** List all Submitted but pending tasks by manager **/
/** for ONLY inactive resources. **/
/*****************************************************/
Select b.RES_NAME as MANAGER,
d.PROJ_NAME,
c.RES_NAME as RESOURCE,
a.TASK_NAME,
a.WASSN_SEND_UPDATE_DATE
from dbo.MSP_WEB_ASSIGNMENTS as a
inner join dbo.MSP_WEB_RESOURCES as b
on a.WRES_ID_MGR = b.WRES_ID
inner join dbo.MSP_WEB_RESOURCES as c
on a.WRES_ID = c.WRES_ID
inner join dbo.MSP_WEB_PROJECTS as d
on a.WPROJ_ID = d.WPROJ_ID
Where a.WASSN_SEND_UPDATE_NEEDED = 1
and a.WASSN_ACTUALS_PENDING = 1
and a.WASSN_UPDATE_STATUS = 1
and a.WASSN_SEND_UPDATE_DATE IS NOT NULL
and c.WRES_IS_ENABLED = 0 -- Inactive Flag
order by b.RES_NAME, d.PROJ_NAME, c.RES_NAME
/*****************************************************/
/** List all Submitted but pending tasks by manager **/
/** for ONLY active Managers and active Resources **/
/*****************************************************/
Select b.RES_NAME as MANAGER,
d.PROJ_NAME,
c.RES_NAME as RESOURCE,
a.TASK_NAME,
a.WASSN_SEND_UPDATE_DATE
from dbo.MSP_WEB_ASSIGNMENTS as a
inner join dbo.MSP_WEB_RESOURCES as b
on a.WRES_ID_MGR = b.WRES_ID
inner join dbo.MSP_WEB_RESOURCES as c
on a.WRES_ID = c.WRES_ID
inner join dbo.MSP_WEB_PROJECTS as d
on a.WPROJ_ID = d.WPROJ_ID
Where a.WASSN_SEND_UPDATE_NEEDED = 1
and a.WASSN_ACTUALS_PENDING = 1
and a.WASSN_UPDATE_STATUS = 1
and a.WASSN_SEND_UPDATE_DATE IS NOT NULL
and b.WRES_IS_ENABLED = 1 -- Active Manager
and c.WRES_IS_ENABLED = 1 -- Active Resource
order by b.RES_NAME, d.PROJ_NAME, c.RES_NAME
/*****************************************************/
/** List all Submitted but pending tasks by manager **/
/** for ONLY INactive Managers and active Resources **/
/*****************************************************/
Select b.RES_NAME as MANAGER,
d.PROJ_NAME,
c.RES_NAME as RESOURCE,
a.TASK_NAME,
a.WASSN_SEND_UPDATE_DATE
from dbo.MSP_WEB_ASSIGNMENTS as a
inner join dbo.MSP_WEB_RESOURCES as b
on a.WRES_ID_MGR = b.WRES_ID
inner join dbo.MSP_WEB_RESOURCES as c
on a.WRES_ID = c.WRES_ID
inner join dbo.MSP_WEB_PROJECTS as d
on a.WPROJ_ID = d.WPROJ_ID
Where a.WASSN_SEND_UPDATE_NEEDED = 1
and a.WASSN_ACTUALS_PENDING = 1
and a.WASSN_UPDATE_STATUS = 1
and a.WASSN_SEND_UPDATE_DATE IS NOT NULL
and b.WRES_IS_ENABLED = 0 -- INActive Manager
and c.WRES_IS_ENABLED = 1 -- Active Resource
order by b.RES_NAME, d.PROJ_NAME, c.RES_NAME
/*****************************************************/
/** List all Submitted but pending tasks by manager **/
/** for ONLY active Managers and INactive Resources **/
/*****************************************************/
Select b.RES_NAME as MANAGER,
d.PROJ_NAME,
c.RES_NAME as RESOURCE,
a.TASK_NAME,
a.WASSN_SEND_UPDATE_DATE
from dbo.MSP_WEB_ASSIGNMENTS as a
inner join dbo.MSP_WEB_RESOURCES as b
on a.WRES_ID_MGR = b.WRES_ID
inner join dbo.MSP_WEB_RESOURCES as c
on a.WRES_ID = c.WRES_ID
inner join dbo.MSP_WEB_PROJECTS as d
on a.WPROJ_ID = d.WPROJ_ID
Where a.WASSN_SEND_UPDATE_NEEDED = 1
and a.WASSN_ACTUALS_PENDING = 1
and a.WASSN_UPDATE_STATUS = 1
and a.WASSN_SEND_UPDATE_DATE IS NOT NULL
and b.WRES_IS_ENABLED = 1 -- Active Manager
and c.WRES_IS_ENABLED = 0 -- INActive Resource
order by b.RES_NAME, d.PROJ_NAME, c.RES_NAME