JILS-32: Time Recorded/Estimate Calculations should include Subtasks



Issue Information

Issue Type: New Feature
 
Priority: Major
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: Jira Issue Listing Script (JILS)
Resolution: Done (2016-04-29 15:04:15)
Affects Version: 0.01b,
Target version: 0.01b,
Labels: TimeManagement,

Created: 2015-09-18 14:02:50
Time Spent Working
Estimated:
  
15 minutes
Remaining:
 
0 minutes
Logged:
 
25 minutes


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 Links

Commit 4a7ca26 (Github)
Toggle State Changes

Activity


btasker changed status from 'Open' to 'In Progress'
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.
btasker changed status from 'In Progress' to 'Open'
btasker changed timespent from '0 minutes' to '12 minutes'

Repo: Jira-Issue-Listing
Commit: d4d088b65dcea78f8d75bfb63206c019d70c844f
Author: Ben Tasker <github@<Domain Hidden>>

Date: Fri Sep 18 15:53:10 2015 +0100
Commit Message: Times now include any subtasks. See JILS-32



Modified (-)(+)
-------
issue_page.php




Webhook User-Agent

GitHub-Hookshot/be3703b


View Commit

The switcher is now implemented, it's meant adding a JS file to the core build, but that's not too big an issue.

By default an issue page will include subtasks (if any exist), unticking the box will swap to only displaying time information for the issue currently being viewed.

Repo: Jira-Issue-Listing
Commit: c3cd1d7d1d1bc3842fa0309983c673af8b160c88
Author: Ben Tasker <github@<Domain Hidden>>

Date: Fri Sep 18 16:05:29 2015 +0100
Commit Message: Allowed timebar switching between current issue and inc subtasks. See JILS-32



Added (+)
-------
static/core.js


Modified (-)(+)
-------
head-includes.php
issue_page.php
static/core.css




Webhook User-Agent

GitHub-Hookshot/be3703b


View Commit

btasker changed timespent from '12 minutes' to '25 minutes'
This seems to be working correctly, so resolving.
btasker changed status from 'Open' to 'Resolved'
btasker added 'Done' to resolution
btasker changed status from 'Resolved' to 'Closed'
Re-opening to assign to a version
btasker removed 'Done' from resolution
btasker changed status from 'Closed' to 'Reopened'
Assigning to v0.01b
btasker added '0.01b' to Version
btasker added '0.01b' to Fix Version
Re-Closing
btasker changed status from 'Reopened' to 'Resolved'
btasker added 'Done' to resolution
btasker changed status from 'Resolved' to 'Closed'

Work log


Ben Tasker
Permalink
2015-09-18 15:53:50

Time Spent: 12 minutes
Log Entry: Implementing inclusion of subtasks in time calculations

Ben Tasker
Permalink
2015-09-18 16:07:17

Time Spent: 13 minutes
Log Entry: Implementing JS based switched and testing