Subject: | get_statuses |
I haven't tested this yet, we're doing that tomorrow, but the data
structure returned looks useable.
This implements the JIRA getStatuses call.
I would appreciate it if you could incorporate this. Thanks.
Index: Client.pm
===================================================================
--- Client.pm (revision 35)
+++ Client.pm (working copy)
@@ -433,6 +433,19 @@
return $self->{cache}{issue_types};
}
+=item B<get_statuses>
+
+Returns a hash mapping a server's status names to the
+RemoteStatus objects describing them.
+
+=cut
+
+sub get_statuses {
+ my ($self) = @_;
+ $self->{cache}{statuses} ||= {map {$_->{name} => $_} @{$self-
Show quoted text
>getStatuses()}};
+ return $self->{cache}{statuses};
+}
+
=item B<get_priorities>
Returns a hash mapping a server's priorities names to the