Project baseline - is there a way to schedule a baseline?

skendy
Tera Expert

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

1 ACCEPTED SOLUTION

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


View solution in original post

21 REPLIES 21

Kalai I noticed some behavior now:


the scheduled job doesn't create baselines for projects which already have baselines... It creates automatically baselines for projects which do not have yet any baseline.


I executed it two times (the first time it created 71 baselines) and the second time it didn't create any baseline...



Is there any filter in the script which defines this behavior?



Skender


Could it be this row in the code: baseItem.task = tasks.getUniqueValue();?


How can I change it so to add multiple baselines (when job executed) to the same project project?



Skender


Could it be logical to create only one baseline per day?


But, why not possible to create multiple baselines for a project which has (at least one) already old baselines?


I disactivated the if-control: if(!baseline.next())


Now the scheduled job cane be executed several times.


The if condition checks if the baseline already exists .. If you want multiple baselines, you have to remove that ... But it's more logical to have only one baseline per project.