The IncreasePBS script is a DataMiner Automation script designed to manage and update the PBS (Product Backlog Score) values of tasks in a Task Manager element. It identifies tasks in specific states and adjusts their PBS values based on predefined rules.
- Filters tasks based on their state (
In Progress,Code Review,Quality Assurance). - Updates the estimated time for
In Progresstasks with a defaultttidvalue (5 days) when no estimated time has been set before. - Updates PBS values for tasks in
Code RevieworQuality Assurance:- Sets a base PBS value (500) if the current PBS is below the base value.
- Increments PBS by 10 for tasks meeting the criteria.
- Includes safeguards to avoid overwhelming the system by introducing a delay between updates.
The script starts execution in the Run method, which handles exceptions gracefully and calls the RunSafe method for the main logic.
- Base PBS Value:
- The script starts with a base PBS value of
500.
- Task Filtering:
- Filters tasks in the table with PID
120based on the following states:In ProgressCode ReviewQuality Assurance
- PBS Update Rules:
- If the current PBS is less than the base PBS,
- it sets the PBS to the base value.
- Updates the estimated time for tasks with a valid
ttidto 4 days.
- Otherwise, increments the PBS by
10.
- System Safeguard:
- Introduces a
2-seconddelay between updates to avoid overwhelming the system.
- Deploy the script in the DataMiner Automation environment.
- Ensure the table with PID
100and column PID120exists in the target element. - Schedule the script to run periodically if PBS needs to be incremented regularly.
- The script includes commented-out sections for alternative PBS calculation methods, such as using task age.
- Exception handling ensures the script exits gracefully in case of errors.