Bug 934573 - Date range for Bug.history WebService API method
r/a=glob git-svn-id: svn://10.0.0.236/trunk@265104 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5be0faa847
commit
3750ebdc8c
@ -1 +1 @@
|
||||
8806
|
||||
8807
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user