Commit 3d9a1253 authored by Dave Lawrence's avatar Dave Lawrence

Bug 934573 - Date range for Bug.history WebService API method

r/a=glob
parent 3e4bed23
......@@ -40,6 +40,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'],
};
......@@ -400,7 +401,7 @@ sub history {
$bug_id = $bug->id;
$item{id} = $self->type('int', $bug_id);
my ($activity) = $bug->get_activity;
my ($activity) = $bug->get_activity(undef, $params->{new_since});
my @history;
foreach my $changeset (@$activity) {
......@@ -2434,6 +2435,11 @@ 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.
item C<new_since>
C<dateTime> If specified, the method will only return changes I<newer>
than this time.
=back
=item B<Returns>
......@@ -2514,6 +2520,8 @@ names used by L<Bug.update|/"update"> for consistency.
=item REST API call added Bugzilla B<5.0>.
=item Added C<new_since> parameter if Bugzilla B<5.0>.
=back
=back
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment