########################################################################################## JILS-32: Time Recorded/Estimate Calculations should include Subtasks ########################################################################################## Issue Type: New Feature ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2016-04-29 15:04:15) Project: Jira Issue Listing Script (JILS) Reported By: btasker Assigned To: btasker Affected Versions: - 0.01b Targeted for fix in version: - 0.01b Labels: TimeManagement, Time Estimate: 0 minutes Time Logged: 25 minutes ----------------------------------------------------------------------------------------- Issue Description ================== Where a parent issue is being viewed, the _Time Spent Working_ section should include all subtasks. As commit 4a7ca26 separated the processing logic for Subtasks from ordinary issue linking, it should be reasonably straight forward to identify whether an issue has any children ----------------------------------------------------------------------------------------- Issue Relations ================ - Commit 4a7ca26 (Github) (https://github.com/bentasker/Jira-Issue-Listing/commit/4a7ca26de35663c84f303c9efa554a2cb4c09e65) ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2015-09-18 15:41:09 ----------------------------------------------------------------------------------------- btasker changed status from 'Open' to 'In Progress' ----------------------------------------------------------------------------------------- 2015-09-18 15:42:34 btasker ----------------------------------------------------------------------------------------- Should be as simple as seeing if an issue has subtasks, if they do, need to run a sum on - TIMESPENT - TIMEORIGINALESTIMATE - TIMEESTIMATE And use that instead of the issue's fields on it's own. Once that's done, might also be worth looking at whether it's worth reproducing JIRA's "Show Subtasks" checkbox so that the user can choose to only show time for the current issue. ----------------------------------------------------------------------------------------- 2015-09-18 15:53:25 ----------------------------------------------------------------------------------------- btasker changed status from 'In Progress' to 'Open' ----------------------------------------------------------------------------------------- 2015-09-18 15:53:50 ----------------------------------------------------------------------------------------- btasker changed timespent from '0 minutes' to '12 minutes' ----------------------------------------------------------------------------------------- 2015-09-18 15:54:58 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: Jira-Issue-Listing Commit: d4d088b65dcea78f8d75bfb63206c019d70c844f Author: Ben Tasker