How to calculate total original estimate of filtered issues?

We need to calculate the sum of original estimates of filtered issues (from different projects). Is it possible?

Jira has Time Tracking Report. But it shows issues of only one project.

The best way would be total numeric fields for Original Estiamte, Remaining Estimate, Time Spent in Issue Navigator.

Maybe plugins can do it?

Thanks.

9 answers

Hi - yes i have done that.

But I agree - inconvenient.

And it is not as good as the time-tracking report per version in Jira.

My issue is that I want a report that tells me if we are on track for a release schedule, however the release is made up of different projects.

Would love a time tracking report that allows filtering cross project :)

Thanks for your help

Hi

I also need to do this - did you get a resolution at all?

Thanks

Hi

You can download Excel file with filtered issues in Issue Navigator (Views - Excel) and set formula in Excel to calculate total fields.

But it's inconvenient.

i am also waiting for a solution to this problem.

Same here. We need to sum up the original estimates of all the issues in one group of issues (version).

Still no solution...

Solution found!

https://tempoplugin.jira.com/wiki/display/TEMPO/Tempo+7.6+Release+Notes

Released 2 days ago, it does exactly what we need!

Hi everybody!

I wrote small javascript snippet which can be easily run in Chrome Developer tools.

You can run this code easily in Console or create a Snippet in a Sources tab.

Notice: Works only with hour format in time tracking settings, e.g. 5h, 14h. You can modify snippet to fit your needs.

---------------------- COPY CODE UNDER THIS LINE ------------------------------------

var table = document.getElementById('issuetable');

var ths = table.querySelectorAll('th');

var index;

Array.prototype.forEach.call(ths, function(th, i) {

var data = th.getAttribute('data-id');

if (data === 'timeoriginalestimate') index = i;

});

var rows = table.querySelectorAll('.issuerow');

var total = 0;

Array.prototype.forEach.call(rows, function(row) {

var cells = row.querySelectorAll('td');

cells = Array.prototype.slice.call(cells, 0);

var value = cells[index].textContent;

if (!value) return;

total += parseInt(value, 10);

});

console.log('Total original estimate = ' + total + ' hours.');

Hi everybody!

I wrote a small javascript snippet which can be easily run in Chrome Developer tools' Console.

Notice: Works only with hour format in time tracking settings, e.g. 5h, 14h.

You can modify snippet to fit your needs like parsing another time format.

---------------------- COPY CODE UNDER THIS LINE ------------------------------------

var table = document.getElementById('issuetable');

var ths = table.querySelectorAll('th');

var index;

Array.prototype.forEach.call(ths, function(th, i) {

var data = th.getAttribute('data-id');

if (data === 'timeoriginalestimate') index = i;

});

var rows = table.querySelectorAll('.issuerow');

var total = 0;

Array.prototype.forEach.call(rows, function(row) {

var cells = row.querySelectorAll('td');

cells = Array.prototype.slice.call(cells, 0);

var value = cells[index].textContent;

if (!value) return;

total += parseInt(value, 10);

});

console.log('Total original estimate = ' + total + ' hours.');

Hi everybody!

I wrote small javascript snippet which can be easily run in Chrome Developer tools.

You can run this code easily in Console or create a Snippet in a Sources tab.

Notice: Works only with hour format in time tracking settings, e.g. 5h, 14h. You can modify snippet to fit your needs.

Enjoy!

---------------------- COPY CODE UNDER THIS LINE ------------------------------------

var table = document.getElementById('issuetable');

var ths = table.querySelectorAll('th');

var index;

Array.prototype.forEach.call(ths, function(th, i) {

var data = th.getAttribute('data-id');

if (data === 'timeoriginalestimate') index = i;

});

var rows = table.querySelectorAll('.issuerow');

var total = 0;

Array.prototype.forEach.call(rows, function(row) {

var cells = row.querySelectorAll('td');

cells = Array.prototype.slice.call(cells, 0);

var value = cells[index].textContent;

if (!value) return;

total += parseInt(value, 10);

});

console.log('Total original estimate = ' + total + ' hours.');

We made a version for the "pretty" format, which also output the results in pretty format smile

It is very handy to run as a snippet (just create a snippet, paste the code and then you only need to run it whenever needed).

Here is the code:

(function () {

 

            function parseJiraTime(time) {

                var splittedTime = time.split(", ");

 

                var result = 0;

                for (var i = 0; i < splittedTime.length; i++) {

                    var currentTimeUnit = splittedTime[i];

                    if (currentTimeUnit.indexOf("week") > -1) {

                        var count = parseInt(currentTimeUnit, 10);

                        result += (count * 40 * 60);

                    }

 

                    if (currentTimeUnit.indexOf("day") > -1) {

                        var count = parseInt(currentTimeUnit, 10);

                        result += (count * 8 * 60);

                    }

 

                    if (currentTimeUnit.indexOf("hour") > -1) {

                        var count = parseInt(currentTimeUnit, 10);

                        result += (count * 60);

                    }

 

                    if (currentTimeUnit.indexOf("min") > -1) {

                        var count = parseInt(currentTimeUnit, 10);

                        result += count;

                    }

                }

 

                return result;

            }

 

 

            var table = document.getElementById('issuetable');

            var ths = table.querySelectorAll('th');

            var index;

            Array.prototype.forEach.call(ths, function (th, i) {

                var data = th.getAttribute('data-id');

                if (data === 'timeoriginalestimate') index = i;

            });

            var rows = table.querySelectorAll('.issuerow');

            var total = 0;

            Array.prototype.forEach.call(rows, function (row) {

                var cells = row.querySelectorAll('td');

                cells = Array.prototype.slice.call(cells, 0);

                var value = cells[index].textContent;

                if (!value) return;

                total += parseJiraTime(value);

            });

 

            var weeks = parseInt(total / (60 * 8 * 5), 10);

            total = total % (60 * 8 * 5);

 

            var days = parseInt(total / (60 * 8), 10);

            total = total % (60 * 8);

 

            var hours = parseInt(total / 60, 10);

            var minutes = total % 60;

 

            console.log('Total original estimate: ' + weeks + 'w, ' + days + 'd, ' + hours + 'h, ' + minutes + 'm.');

        }());

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

59 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you