http://www.perlmonks.org?node_id=942862


in reply to Re^4: JIRA::Client returns blessed hash
in thread JIRA::Client returns blessed hash

Looks like I guessed wrong on get_custom_fields returning a hash instead of a hash reference.

18 my $custom_fields_ref = $jira->get_custom_fields(); 19 my @custom_field_names = keys %{$custom_fields_ref};
should fix that.

I had found a reference to http://docs.atlassian.com/rpc-jira-plugin/4.1-1/com/atlassian/jira/rpc/soap/beans/RemoteIssue.html, with a statement that the Perl module replicated the Java methods. One of these might work:

$issue->getpriority $issue->get_priority $jira->getpriority($issue) $jira->get_priority($issue) $issue->{priority} # this may work, but is less desirable than using +a method