From: Dave Lawrence Date: Wed, 6 Nov 2013 16:28:16 +0000 (-0500) Subject: Bug 934573 - Date range for Bug.history WebService API method X-Git-Tag: bugzilla-4.5.2~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d9a12530dadc14f524d5c1e3080a76ef207043c;p=thirdparty%2Fbugzilla.git Bug 934573 - Date range for Bug.history WebService API method r/a=glob --- diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 30d07d1f4a..598316c597 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -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) { @@ -2432,7 +2433,12 @@ 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. =back @@ -2514,6 +2520,8 @@ names used by L for consistency. =item REST API call added Bugzilla B<5.0>. +=item Added C parameter if Bugzilla B<5.0>. + =back =back