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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,783 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot