- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2018 11:23 AM
Background:
We're fairly new to the PPM module. We have several projects in flight, and I'd like to avoid anyone else going through what I just did.
I was at the end of the Project (which was still in the "Execution" stage). I decided to manually change that to "Monitor and Control." When I did that, it kept all of the "Closed Complete" statuses in the parent tasks, and removed all of the actual dates. Every. Single. One. Yep, never do something new on actual live data.
I'd like to reset the entire project back to the baseline plan dates. Is there a way to do this? Thanks in advance for not calling me an idiot out loud. 🙂
Solved! Go to Solution.
- Labels:
-
Project Portfolio Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2018 02:39 PM
There's no 'revert' action currently available on Baselines. The good news is it *shouldn't* be too hard to build. You could write a script that goes through the selected baseline, reads the baseline items, then goes to the referenced task and over-writes the planned start / end fields.
Also, do not run on PROD. Build on dev and try to recreate the issue there to see if the script actually does what you want it to.
Here's a quick and dirty on the script:
(Just remember... it baselined PLANNED, not actual... so be absolutely sure which date fields on your Project Task you want to overwrite with baselined values).
var dropthatmadbaseline = new GlideRecord('planned_task_baseline_item');
dropthatmadbaseline.get('xxx'); //sys_id of the baseline
while (dropthatmadbaseline.next()){
var projectomundo_task = new GlideRecord('pm_project_task');
projectomundo_task.get(dropthatmadbaseline.task);
projectomundo_task.work_start = dropthatmadbaseline.start;
projectomundo_task.work_end = dropthatmadbaseline.end;
projectomundo_task.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2018 02:39 PM
There's no 'revert' action currently available on Baselines. The good news is it *shouldn't* be too hard to build. You could write a script that goes through the selected baseline, reads the baseline items, then goes to the referenced task and over-writes the planned start / end fields.
Also, do not run on PROD. Build on dev and try to recreate the issue there to see if the script actually does what you want it to.
Here's a quick and dirty on the script:
(Just remember... it baselined PLANNED, not actual... so be absolutely sure which date fields on your Project Task you want to overwrite with baselined values).
var dropthatmadbaseline = new GlideRecord('planned_task_baseline_item');
dropthatmadbaseline.get('xxx'); //sys_id of the baseline
while (dropthatmadbaseline.next()){
var projectomundo_task = new GlideRecord('pm_project_task');
projectomundo_task.get(dropthatmadbaseline.task);
projectomundo_task.work_start = dropthatmadbaseline.start;
projectomundo_task.work_end = dropthatmadbaseline.end;
projectomundo_task.update();
}