From 4a3a96c3596a5510286034570489f21540a6f23c Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Wed, 6 Nov 2013 11:45:25 -0500 Subject: Bug 934573 - Date range for Bug.history WebService API method --- Bugzilla/WebService/Bug.pm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Bugzilla') 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 + +C If specified, the method will only return changes I +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 - -An optional C string that only shows changes at and after a specific -time. - =back =item B @@ -3869,6 +3870,8 @@ rules don't allow that change. =item REST API call added Bugzilla B<5.0>. +=item Added C parameter if Bugzilla B<5.0>. + =back =back -- cgit v1.2.3-24-g4f1b