- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2015 09:16 AM
Hi,
I have been asked if there is a way to schedule (or an automatic procedure) a baseline in the project related lists?
I was thinking a kind of any specified date or time to have a 'snapshot' of the project tasks state and actual dates and progress.
I suggested scheduling reports, but it is not the same thing...
Thank you for any help,
Skender
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2015 05:08 AM
Change this line as per your requirement
projects.addEncodedQuery("active=true^state=1");
Baselines parent table is 'planned_task_baseline'. The script is for creation of baselines . You may run a scheduled report to automatically retrieve the data

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2015 05:08 AM
Change this line as per your requirement
projects.addEncodedQuery("active=true^state=1");
Baselines parent table is 'planned_task_baseline'. The script is for creation of baselines . You may run a scheduled report to automatically retrieve the data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2015 02:43 AM
I execute the schedule job for all active projects with no errors.
I have active 71 project and so I should except 71 baselines, right?
...
var projects = new GlideRecord("pm_project");
projects.addEncodedQuery("active=true");
...
But when I run the report on planned_task_baseline table with no filters at all, I get as a result the old baselines (old date) and NO new ones created by the scheduled job right now...
What should I modify?
Thanks,
Skender

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2015 02:56 AM
active=true query should work for all the active projects.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2015 03:34 AM
I tested the scheduled job also with other types of addEncodedQuery filters,
but it seems that it is not populating the planned_task_baseline table. And when I create manually a new baseline for a project I see it in the updated report...
When I see the system log -> events it is executed correctly.
I am thinking what is going wrong...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2015 03:52 AM
I am really sorry Kalai. IT WORKS PERFECTLY!
I had not put the final () in the scheduled job!
Grazie mille!
Skender