Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Scenario

  • "I'm a project manager and want to see all issues in my project where the work logged has exceeded the original estimate"
  • "I want to be able to understand why our estimates are off and be able to estimate more accurately in the future"
  • "I want to see which developers routinely exceed expectations and which developers routinely exceed budgets"

We'll show you how to do all of this using Power Scripts™ for Jira, a powerful scripting tool to help automate your Jira.

What These Scripts Do

...

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=Display+all+issues+where+work+logged+exceeded+estimate+-+15482728
widthauto

Problem

As a project manager, you may encounter challenges in tracking issues where the logged work exceeds the original estimate. Understanding the reasons behind estimation discrepancies is crucial for future accuracy in project estimation. Additionally, identifying developers consistently surpassing expectations or budgets is essential for effective project management.

This article guides you through achieving these objectives using Power Scripts™ for Jira, a robust scripting tool designed to automate Jira processes.

Solution

This script is straightforward. By inputting a project through the advanced JQL search bar,

...

the script scans all issues,

...

computes time logged by group for each issue, and compares it to the original estimate. If the work logged

...

exceeds the original estimate,

...

the script returns the relevant issues via JQL.

Prerequisites

...

  1. Ensure you have Jira Core or Jira

...

  1. Software installed.

...

  1. Power Scripts™

...

  1. for Jira should be installed

...

  1. .

  2. Users should be categorized into groups labeled "jira-developers" and "jira-administrators."

...

  1. Adjustments may be necessary based on your specific

...

  1. requirements.

Copy or Create File in Root silprograms Directory

Bitbucket file macro
showLineNumberstrue
titlesilJQL_LoggedGreaterThanEstimate.sil
urlhttps://bitbucket.cprime.io/projects/CAP/repos/sil-script-library/raw/silJQL_LoggedGreaterThanEstimate.sil?at=refs%2Fheads%2Fmaster
syntaxHighlightingJavaScript

The following JQL script returns all issues with more work logged than the original estimate for a user-supplied project.

Code Block
string [] keys = selectIssues("project = " + argv[0]);
string [] ret;
for(string k in keys) {
    if(%k%.originalEstimate !="") {
        interval developerTimeSpent = getTimeSpent(k, "jira-developers");
        interval administratorTimeSpent = getTimeSpent(k, "jira-administrators");
        interval totalTimeSpent = developerTimeSpent + administratorTimeSpent;
        if(totalTimeSpent > %k%.originalEstimate) {
            ret += k;
        }
    }
}

Execute the JQL

In the advanced JQL search bar,

...

simply input and customize the following (adjusting the project key to your specific needs).

Code Block
key in silJQLList("silJQL_LoggedGreaterThanEstimate.sil", "PROJ")

See also

...

Table of Contents

Table of Contents