I have a variable ($issue) that contains various values that I need to pull a single value (emailAddress) from. The contents of $issue (via Data::Dump) is:
'fields' => {
'reporter' => {
'name' => 'jeremywilson',
'displayName' => 'Jeremy Wilson',
'key' => '15429',
'emailAddress' => '[email protected]',
'timeZone' => 'America/New_York',
'active' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
},
'customfield' => [
{
'active' => $VAR1->{'fields'}{'reporter'}{'active'},
'timeZone' => 'America/New_York',
'emailAddress' => '[email protected]',
'key' => 'mexample',
'name' => 'mexample',
'displayName' => 'Mike Example'
}
],
}
I get the first email via $issue->{fields}->{'reporter'}->{'emailAddress'} but how do I get the value from customfield?
$issue->{fields}->{customfield}[0]->{emailAddress}? A minimal reproducible example would help...$issue->{fields}{customfield}[0]{emailAddress}to make record shorter.