R
RugbyCoach
I am trying to write a report that filters only for projects where a
specific enterprise outline code has been changed in the last 7 days.
As a bit of background, the enterprise code contains Project Phase.
The intent of the report is to identify projects that have changed
phase in the last week so that they can be discussed at the weekly IT
manager's meeting.
Anyway, the basic query is inserted below. I have looked at the tables
and can't find a column that I can use to identify changes to the
enterprise code assignment by date. There are a couple of promising
fields on msp_web_assignements called assn_start_date and
assn_finish_date, but they don't seem to work the way that I hoped.
Does anyone have any suggestions for what I can do to get what I need?
Thanks,
Simon
select
wp.proj_id
, wp.proj_name
, convert(varchar,moc.oc_name) AS ProjectPhase
from
msp_web_projects wp
join msp_web_assignments mwa on mwa.wproj_id = wp.wproj_id
join dbo.MSP_WEB_WORKGROUP_FIELDS f on mwa.wassn_id = f.wassn_id
join dbo.MSP_WEB_WORKGROUP_FIELDS_INFO fi on fi.field_id = f.field_id
join MSP_OUTLINE_CODES MOC ON f.INT_VAL = MOC.CODE_UID
join msp_projects mp on moc.proj_id = mp.proj_id
where fi.custfield_name = 'Project Phase'
and mp.proj_type = 2
order by ProjectPhase
specific enterprise outline code has been changed in the last 7 days.
As a bit of background, the enterprise code contains Project Phase.
The intent of the report is to identify projects that have changed
phase in the last week so that they can be discussed at the weekly IT
manager's meeting.
Anyway, the basic query is inserted below. I have looked at the tables
and can't find a column that I can use to identify changes to the
enterprise code assignment by date. There are a couple of promising
fields on msp_web_assignements called assn_start_date and
assn_finish_date, but they don't seem to work the way that I hoped.
Does anyone have any suggestions for what I can do to get what I need?
Thanks,
Simon
select
wp.proj_id
, wp.proj_name
, convert(varchar,moc.oc_name) AS ProjectPhase
from
msp_web_projects wp
join msp_web_assignments mwa on mwa.wproj_id = wp.wproj_id
join dbo.MSP_WEB_WORKGROUP_FIELDS f on mwa.wassn_id = f.wassn_id
join dbo.MSP_WEB_WORKGROUP_FIELDS_INFO fi on fi.field_id = f.field_id
join MSP_OUTLINE_CODES MOC ON f.INT_VAL = MOC.CODE_UID
join msp_projects mp on moc.proj_id = mp.proj_id
where fi.custfield_name = 'Project Phase'
and mp.proj_type = 2
order by ProjectPhase