summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-11-06 17:45:25 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-11-06 17:45:25 +0100
commit4a3a96c3596a5510286034570489f21540a6f23c (patch)
tree6607db29fa0efb19b12be070308e315b73b867c2 /Bugzilla
parent3dd58e7d2c5c9ca32273cdcb17bfa10d67137c9d (diff)
downloadbugzilla-4a3a96c3596a5510286034570489f21540a6f23c.tar.gz
bugzilla-4a3a96c3596a5510286034570489f21540a6f23c.tar.xz
Bug 934573 - Date range for Bug.history WebService API method
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/WebService/Bug.pm17
1 files changed, 10 insertions, 7 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index 0202afc59..aa5fd49c4 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -53,6 +53,7 @@ use constant PRODUCT_SPECIFIC_FIELDS => qw(version target_milestone component);
use constant DATE_FIELDS => {
comments => ['new_since'],
+ history => ['new_since'],
search => ['last_change_time', 'creation_time'],
};
@@ -407,7 +408,7 @@ sub history {
$bug_id = $bug->id;
$item{id} = $self->type('int', $bug_id);
- my ($activity) = Bugzilla::Bug::GetBugActivity($bug_id, undef, $params->{start_time});
+ my ($activity) = Bugzilla::Bug::GetBugActivity($bug_id, undef, $params->{new_since});
my @history;
foreach my $changeset (@$activity) {
@@ -2446,17 +2447,17 @@ An array of numbers and strings.
If an element in the array is entirely numeric, it represents a bug_id
from the Bugzilla database to fetch. If it contains any non-numeric
characters, it is considered to be a bug alias instead, and the data bug
-with that alias will be loaded.
+with that alias will be loaded.
+
+item C<new_since>
+
+C<dateTime> If specified, the method will only return changes I<newer>
+than this time.
Note that it's possible for aliases to be disabled in Bugzilla, in which
case you will be told that you have specified an invalid bug_id if you
try to specify an alias. (It will be error 100.)
-=item C<start_time>
-
-An optional C<datetime> string that only shows changes at and after a specific
-time.
-
=back
=item B<Returns>
@@ -3869,6 +3870,8 @@ rules don't allow that change.
=item REST API call added Bugzilla B<5.0>.
+=item Added C<new_since> parameter if Bugzilla B<5.0>.
+
=back
=back