Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the JIRA-Client CPAN distribution.

Report information
The Basics
Id: 61184
Status: resolved
Priority: 0/
Queue: JIRA-Client

People
Owner: Nobody in particular
Requestors: michael [...] riceclan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Michael, I just released version 0.25 which includes your get_statuses method. Thanks! Gustavo.