diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-11-06 11:28:16 -0500 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-11-06 11:28:16 -0500 |
commit | 3d9a12530dadc14f524d5c1e3080a76ef207043c (patch) | |
tree | 0d12eda24b1a40e09e2c3fb2809d39b221e96a97 /Bugzilla/WebService | |
parent | 3e4bed239348cf5af0c70c3ab6315c0f24044959 (diff) | |
download | bugs-3d9a12530dadc14f524d5c1e3080a76ef207043c.tar bugs-3d9a12530dadc14f524d5c1e3080a76ef207043c.tar.gz bugs-3d9a12530dadc14f524d5c1e3080a76ef207043c.tar.bz2 bugs-3d9a12530dadc14f524d5c1e3080a76ef207043c.tar.xz bugs-3d9a12530dadc14f524d5c1e3080a76ef207043c.zip |
Bug 934573 - Date range for Bug.history WebService API method
r/a=glob
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r-- | Bugzilla/WebService/Bug.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 30d07d1f4..598316c59 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<new_since> + +C<dateTime> If specified, the method will only return changes I<newer> +than this time. =back @@ -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 |