diff options
author | frase <frase@frase.id.au> | 2012-03-29 23:50:38 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2012-03-29 23:50:38 +0200 |
commit | d292affc721a1807f2e196b7a2e8258e726b0ead (patch) | |
tree | bc9f327010998876331ba539d6642b6331c96c1d /Bugzilla/WebService | |
parent | f21583b6ab8b870aaa3f8be48426d4e0f6a7ae48 (diff) | |
download | bugzilla-d292affc721a1807f2e196b7a2e8258e726b0ead.tar.gz bugzilla-d292affc721a1807f2e196b7a2e8258e726b0ead.tar.xz |
Bug 643681 - Bug.get should also return the time spent on a bug for users in the timetracking group
r=dkl, a=LpSolit
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r-- | Bugzilla/WebService/Bug.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 38bd277f1..8d117992c 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -886,6 +886,7 @@ sub _bug_to_hash { # No need to format $bug->deadline specially, because Bugzilla::Bug # already does it for us. $item{'deadline'} = $self->type('string', $bug->deadline); + $item{'actual_time'} = $self->type('double', $bug->actual_time); } if (Bugzilla->user->id) { @@ -1654,6 +1655,13 @@ the valid ids. Each hash contains the following items: =over +=item C<actual_time> + +C<double> The total number of hours that this bug has taken (so far). + +If you are not in the time-tracking group, this field will not be included +in the return value. + =item C<alias> C<string> The unique alias of this bug. @@ -1982,6 +1990,9 @@ and all custom fields. =item The C<flags> array was added in Bugzilla B<4.4>. +=item The C<actual_time> item was added to the C<bugs> return value +in Bugzilla B<4.4>. + =back =back |