summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorfrase <frase@frase.id.au>2012-03-30 00:35:39 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-03-30 00:35:39 +0200
commitda0d50fe3d7c9beccfc0d2a99a4273dcc175366c (patch)
tree05476ec0ff04c9737ec0c4cd5d990ee3f3a48518 /Bugzilla/WebService
parent5411bc1ba8203397145737a5ef5fe7faba57eb87 (diff)
downloadbugzilla-da0d50fe3d7c9beccfc0d2a99a4273dcc175366c.tar.gz
bugzilla-da0d50fe3d7c9beccfc0d2a99a4273dcc175366c.tar.xz
Bug 643681: add 'actual_time' to bug fields if user is timetracker; now with history
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Bug.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index 53299566f..3a55a097b 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -977,6 +977,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) {
@@ -1737,6 +1738,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.
@@ -2066,6 +2074,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