From 47ad0f696d7f1d06ab5b8c0507cc361b7ece7614 Mon Sep 17 00:00:00 2001 From: pablovigil Date: Tue, 19 Aug 2014 09:57:59 -0300 Subject: [PATCH 1/2] Added Internal Developer Deadlines field to layout and email template. --- .../Dimagi_Emails/Project_Report_Out.email | 19 ++ .../Project_Report_Out.email-meta.xml | 9 + .../Project_Report_Out_Dev_Work.email | 23 ++ ...Project_Report_Out_Dev_Work.email-meta.xml | 9 + ...rt_Out__c-Project Report Out Layout.layout | 87 ++++++++ src/objects/Project_Report_Out__c.object | 202 +++++++++++++++++- src/package.xml | 10 +- src/workflows/Project_Report_Out__c.workflow | 71 ++++++ 8 files changed, 426 insertions(+), 4 deletions(-) create mode 100644 src/email/Dimagi_Emails/Project_Report_Out.email create mode 100644 src/email/Dimagi_Emails/Project_Report_Out.email-meta.xml create mode 100644 src/email/Dimagi_Emails/Project_Report_Out_Dev_Work.email create mode 100644 src/email/Dimagi_Emails/Project_Report_Out_Dev_Work.email-meta.xml create mode 100644 src/layouts/Project_Report_Out__c-Project Report Out Layout.layout create mode 100644 src/workflows/Project_Report_Out__c.workflow diff --git a/src/email/Dimagi_Emails/Project_Report_Out.email b/src/email/Dimagi_Emails/Project_Report_Out.email new file mode 100644 index 00000000..20fc1b04 --- /dev/null +++ b/src/email/Dimagi_Emails/Project_Report_Out.email @@ -0,0 +1,19 @@ +Project Name: {!Project_Report_Out__c.Name} + +Status: {!Project_Report_Out__c.Status__c} + +Key Accomplishments (last 2 weeks): + +{!Project_Report_Out__c.Key_Accomplishments_Last_Two_Weeks__c} + +Key Next Steps (next 2 weeks): + +{!Project_Report_Out__c.Key_Next_Steps_next_2_weeks__c} + +Issues / Questions / Notables: + +{!Project_Report_Out__c.Issues_Questions_Notables__c} + +Client Facing Deadlines: + +{!Project_Report_Out__c.Client_Facing__c} \ No newline at end of file diff --git a/src/email/Dimagi_Emails/Project_Report_Out.email-meta.xml b/src/email/Dimagi_Emails/Project_Report_Out.email-meta.xml new file mode 100644 index 00000000..17bd0702 --- /dev/null +++ b/src/email/Dimagi_Emails/Project_Report_Out.email-meta.xml @@ -0,0 +1,9 @@ + + + true + ISO-8859-1 + Project Report Out + + [report out]: {!Project_Report_Out__c.Name} + text + diff --git a/src/email/Dimagi_Emails/Project_Report_Out_Dev_Work.email b/src/email/Dimagi_Emails/Project_Report_Out_Dev_Work.email new file mode 100644 index 00000000..b52578d0 --- /dev/null +++ b/src/email/Dimagi_Emails/Project_Report_Out_Dev_Work.email @@ -0,0 +1,23 @@ +Project Name: {!Project_Report_Out__c.Name} + +Status: {!Project_Report_Out__c.Status__c} + +Key Accomplishments (last 2 weeks): + +{!Project_Report_Out__c.Key_Accomplishments_Last_Two_Weeks__c} + +Key Next Steps (next 2 weeks): + +{!Project_Report_Out__c.Key_Next_Steps_next_2_weeks__c} + +Issues / Questions / Notables: + +{!Project_Report_Out__c.Issues_Questions_Notables__c} + +Client Facing Deadlines: + +{!Project_Report_Out__c.Client_Facing__c} + +Internal Developer Deadlines: + +{!Project_Report_Out__c.Requires_Developer_Work__c} \ No newline at end of file diff --git a/src/email/Dimagi_Emails/Project_Report_Out_Dev_Work.email-meta.xml b/src/email/Dimagi_Emails/Project_Report_Out_Dev_Work.email-meta.xml new file mode 100644 index 00000000..bc0f2029 --- /dev/null +++ b/src/email/Dimagi_Emails/Project_Report_Out_Dev_Work.email-meta.xml @@ -0,0 +1,9 @@ + + + true + ISO-8859-1 + Project Report Out Dev Work + + [report out]: {!Project_Report_Out__c.Name} + text + diff --git a/src/layouts/Project_Report_Out__c-Project Report Out Layout.layout b/src/layouts/Project_Report_Out__c-Project Report Out Layout.layout new file mode 100644 index 00000000..8dd5e24c --- /dev/null +++ b/src/layouts/Project_Report_Out__c-Project Report Out Layout.layout @@ -0,0 +1,87 @@ + + + Submit + + false + true + true + + + + Edit + PM_email__c + + + Edit + Report_Out_Date__c + + + Required + Contract__c + + + Edit + Status__c + + + Required + Name + + + Edit + Key_Accomplishments_Last_Two_Weeks__c + + + Edit + Key_Next_Steps_next_2_weeks__c + + + Edit + Issues_Questions_Notables__c + + + Edit + Client_Facing__c + + + Edit + Requires_Developer_Work__c + + + + + + false + false + true + + + + Readonly + CreatedById + + + + + Readonly + LastModifiedById + + + + + + true + false + true + + + + + + + false + false + false + false + false + diff --git a/src/objects/Project_Report_Out__c.object b/src/objects/Project_Report_Out__c.object index d9e5d481..b1342161 100644 --- a/src/objects/Project_Report_Out__c.object +++ b/src/objects/Project_Report_Out__c.object @@ -1,13 +1,213 @@ + + Accept + Default + + + CancelEdit + Default + + + Clone + Default + + + Delete + Default + + + Edit + Default + + + Follow + Default + + + List + Default + + + New + Default + + + SaveEdit + Default + + + Tab + Default + + + View + Default + + SYSTEM + Deployed + false + false + true + true + + Client_Facing__c + false + + 32768 + false + false + Html + 10 + + + Contract__c + false + + DContract__c + Project Report Outs + Contract_Project_Report_Outs + 0 + false + false + false + MasterDetail + false + + + Issues_Questions_Notables__c + false + + 32768 + false + false + Html + 10 + + + Key_Accomplishments_Last_Two_Weeks__c + false + + 32768 + false + false + Html + 10 + + + Key_Next_Steps_next_2_weeks__c + false + + 32768 + false + false + Html + 10 + + + PM_email__c + false + + false + false + false + Email + false + + + Report_Out_Date__c + false + The last day of the report out period. + + false + false + false + Date + Requires_Developer_Work__c false - + 32768 false false Html 10 + + Status_Code__c + false + CASE( Status__c , 'Green', 3, 'Yellow', 2, 1) + + 18 + false + 0 + false + false + Number + false + + + Status__c + false + + + + Green + false + + + Yellow + false + + + Red + false + + false + + false + false + Picklist + + + + All + NAME + Contract__c + Status__c + Key_Accomplishments_Last_Two_Weeks__c + Key_Next_Steps_next_2_weeks__c + Issues_Questions_Notables__c + Everything + + + + + false + Text + + Project Report Outs + + ControlledByParent + + Must_be_2nd_or_4th_Thursday + true + IF(CASE(MOD( Report_Out_Date__c - DATE(1900, 1, 6), 7), 5, "Thursday","Error") = "Thursday", + if(DAY(Report_Out_Date__c) < 8, + true, + if(DAY(Report_Out_Date__c) < 15, + false, + if(DAY(Report_Out_Date__c) < 22, + true, + if(DAY(Report_Out_Date__c) < 29, + false, + true) + ) + ) + ), + true) + Report_Out_Date__c + Must be the second of fourth Thursday of a month. + diff --git a/src/package.xml b/src/package.xml index 84430350..139ffcd1 100644 --- a/src/package.xml +++ b/src/package.xml @@ -20,21 +20,25 @@ * CustomObject + + * + Layout + * StaticResource * - WorkflowFieldUpdate + Workflow * - WorkflowRule + EmailTemplate * CustomTab - 29.0 + 30.0 diff --git a/src/workflows/Project_Report_Out__c.workflow b/src/workflows/Project_Report_Out__c.workflow new file mode 100644 index 00000000..584b7d62 --- /dev/null +++ b/src/workflows/Project_Report_Out__c.workflow @@ -0,0 +1,71 @@ + + + + Project_Report_Out_Send_Email + nnestle@dimagi.com + Project Report Out: Send Email to Owner + false + + PM_email__c + email + + dimagi-salesforce@dimagi.com + OrgWideEmailAddress + + + + Project_Report_Out_Send_Email_Dev_Work + nnestle@dimagi.com + Project Report Out: Send Email to Owner Dev Work + false + + PM_email__c + email + + dimagi-salesforce@dimagi.com + OrgWideEmailAddress + + + + Project_Report_Out_Name + Sets the report out name to Contract Name - [date] + Name + Contract__r.Name & " - [" & TEXT(Report_Out_Date__c) & "]" + Project Report Out Name + false + Formula + false + + + Project Report Out%3A Email Out + + Project_Report_Out_Send_Email + Alert + + true + Sends email to everyone on the distribution list for a contract when a report out is created. + NOT(Contract__r.Requires_Developer_Work__c) + onCreateOnly + + + Project Report Out%3A Email Out Dev Work + + Project_Report_Out_Send_Email_Dev_Work + Alert + + true + Sends email to everyone on the distribution list for a contract when a report out is created. + Contract__r.Requires_Developer_Work__c + onCreateOnly + + + Project Report Out%3A Name + + Project_Report_Out_Name + FieldUpdate + + true + ISCHANGED( Contract__c ) || ISCHANGED( Report_Out_Date__c ) + onAllChanges + + From 2dc1c6fc2e89de40b0a14d65e4067d4a3e7fb677 Mon Sep 17 00:00:00 2001 From: pablovigil Date: Tue, 19 Aug 2014 10:01:13 -0300 Subject: [PATCH 2/2] Delete FogBugzAPITest.cls-meta.xml --- src/classes/FogBugzAPITest.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 src/classes/FogBugzAPITest.cls-meta.xml diff --git a/src/classes/FogBugzAPITest.cls-meta.xml b/src/classes/FogBugzAPITest.cls-meta.xml deleted file mode 100644 index 307ce733..00000000 --- a/src/classes/FogBugzAPITest.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 25.0 - Active -