Skip to content

SkylineCommunications/SLC_AS_TaskManager_IncreasePBS

Repository files navigation

IncreasePBS Script

Overview

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.

Features

  • Filters tasks based on their state (In Progress, Code Review, Quality Assurance).
  • Updates the estimated time for In Progress tasks with a default ttid value (5 days) when no estimated time has been set before.
  • Updates PBS values for tasks in Code Review or Quality 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.

Script Details

Entry Point

The script starts execution in the Run method, which handles exceptions gracefully and calls the RunSafe method for the main logic.

Main Logic (RunSafe)

  1. Base PBS Value:
  • The script starts with a base PBS value of 500.
  1. Task Filtering:
  • Filters tasks in the table with PID 120 based on the following states:
    • In Progress
    • Code Review
    • Quality Assurance
  1. 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 ttid to 4 days.
  • Otherwise, increments the PBS by 10.
  1. System Safeguard:
  • Introduces a 2-second delay between updates to avoid overwhelming the system.

Usage

  • Deploy the script in the DataMiner Automation environment.
  • Ensure the table with PID 100 and column PID 120 exists in the target element.
  • Schedule the script to run periodically if PBS needs to be incremented regularly.

Notes

  • 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.

About

DataMiner Automation Script to increase the PBS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages