]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 643681 - Bug.get should also return the time spent on a bug for users in the...
authorfrase <frase@frase.id.au>
Thu, 29 Mar 2012 21:50:38 +0000 (17:50 -0400)
committerDave Lawrence <dlawrence@mozilla.com>
Thu, 29 Mar 2012 21:50:38 +0000 (17:50 -0400)
r=dkl, a=LpSolit

Bugzilla/WebService/Bug.pm

index 38bd277f14df4abb6573598f7a3d3e8c3186f236..8d117992cc5f21410a4c3c82b10c611a74d0e7a5 100644 (file)
@@ -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