in reply to Re: JIRA::Client returning "RemoteIssue=HASH(******)"
in thread JIRA::Client returning "RemoteIssue=HASH(******)"

Worked like a charm! Much appreciated! I received back the following:

$VAR1=bless( { 'priority' => '2', 'customFieldValues' => [ bless( { 'customfieldID' => 'cus +tomfield_12345', 'values' => ['John Smit +h'], 'key' => undef}, 'RemoteCustomFieldValue +' ), bless ...

It seems as if I will have to identify the customfieldIDs that I'm interested in and get the corresponding values. Do you know of another way to accomplish this other than parsing the output for the customfieldID then obtaining the hash tag value for "values"? Thanks again.

Replies are listed 'Best First'.
Re^3: JIRA::Client returning "RemoteIssue=HASH(******)"
by keszler (Priest) on Dec 03, 2011 at 19:58 UTC

    Each $issue returned by $jira->next_issue is a blessed object with its own methods for getting and setting information. The JIRA::Client documentation doesn't have a lot of detail, and the source isn't much better. Try:

    while (my $issue = $jira->next_issue()) { #print Dumper($issue); my $custom_fields_ref = $issue->get_custom_fields(); for my $cf_name (keys %{$custom_fields_ref}) { print ">>$cf_name<< = >>>$custom_fields_ref->{$cf_name}<<<\n"; } print 'Priority: ', $issue->priority, $/; # do as above for other fields at the same level as 'priority' => 2 }