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


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

Seems like we are making progress :) . Here is what the code looks like now:

15 my $jira=JIRA::Client->new('http://example.com/jira',$user,$pw); 16 $jira->set_filter_iterator($filterID); 17 my @custom_field_names; 18 my $custom_fields_ref = $jira->get_custom_fields(); 19 my @custom_field_names = keys %{$custom_fields_ref}; 20 # if the above is filled with IDs instead of names, use 'values' in +stead of 'keys' 21 22 23 while (my $issue = $jira->next_issue()) { 24 25 print 'Priority: ', $jira->get_priorities($issue), "\n"; 26 print 'Status : ', $jira->get_statuses($issue), "\n"; 27 my @custom_field_values; 28 @custom_field_values = $jira->get_issue_custom_field_values($issue, + @custom_field_names); 29 30 for (my $i=0; $i < @custom_field_names; $i++) { 31 print "Custom Field $custom_field_names[$i] : $custom_field_val +ues[$i]; 32 } 33 print '-'x40,$/; 34 }

The issue is I am getting back "Prioritity: HASH(0x******)" and the same for the Status. Not sure why this is the case because I am using Dumper on both of these calls. It is also interesting that most of the custom field values (@custom_field_values) are missing. The ones that are being shown are displayed as "ARRAY(0x******)". I am also wondering if the custom field names that are returned are for this particular filterID because they are not displayed on the actual JIRA filter page and most of their values are missing.