Have a look at perlreftut for an introduction to references.
I believe you are looking for:
$perl{'issues'}->[0]->{'fields'}->{'customfield_22181'}; $perl{'issues'}->[0]->{'fields'}->{'customfield_11150'}->{'value'}; # etc
Output:#!/usr/bin/perl use strict; use warnings; use feature qw/ say /; use Data::Dumper; my %perl = ( 'issues' => [ { 'fields' => { 'customfield_22181' => 'Jira Testing', 'customfield_11150' => { 'value' => 'Yes', }, }, }, ], ); say $perl{'issues'}->[0]->{'fields'}->{'customfield_22181'}; say $perl{'issues'}->[0]->{'fields'}->{'customfield_11150'}->{'value'} +;
Jira Testing Yes
Hope this helps!
In reply to Re: Getting specific field values from JIRA rest/api output using JSON::XS and array of hashes
by 1nickt
in thread Getting specific field values from JIRA rest/api output using JSON::XS and array of hashes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |