Getting specific field values from JIRA rest/api/2/search?jql=filter=47080&fields=summary,issuetype,updated,status,customfield_11179, customfield_22380,customfield_11150,customfield_22181,customfield_11780 output using Perl module JSON::XS
my $perl = JSON::XS::decode_json $json; print Dumper @$perl{'issues'};
give output below:
$VAR1 = [ { 'fields' => { 'customfield_22181' => 'Jira Testing', 'customfield_11150' => { 'value' => 'Yes', 'self' => 'https://example.net/rest/api/2/customFieldOption/1 +1347', 'id' => '11347' }, 'status' => { 'statusCategory' => { 'colorName' => 'yellow', 'name' => 'In Progress', 'self' => 'https://example.net/rest/api/2/statuscategory/4', 'id' => 4, 'key' => 'indeterminate' }, 'name' => 'ProdStaged', 'iconUrl' => 'https://example.net/images/icons/statuses/generi +c.png', 'self' => 'https://example.net/rest/api/2/status/10034', 'id' => '10034', 'description' => '' }, 'customfield_22380' => '2016-02-20', 'customfield_11179' => '2015-12-11', 'customfield_11780' => [ { 'value' => 'Sunday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12841', 'id' => '12841' }, { 'value' => 'Monday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12842', 'id' => '12842' }, { 'value' => 'Tuesday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12843', 'id' => '12843' }, { 'value' => 'Wednesday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12844', 'id' => '12844' }, { 'value' => 'Thursday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12845', 'id' => '12845' }, { 'value' => 'Friday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12846', 'id' => '12846' }, { 'value' => 'Saturday', 'self' => 'https://example.net/rest/api/2/customFieldOption +/12847', 'id' => '12847' } ], 'issuetype' => { 'name' => 'Auto Testing', 'iconUrl' => 'https://example.net/secure/viewavatar?size=xsmall +&avatarId=26414&avatarType=issuetype', 'self' => 'https://example.net/rest/api/2/issuetype/10100', 'id' => '10100', 'subtask' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ), 'description' => '', 'avatarId' => 26414 }, 'summary' => ' JIRA testing Summary', 'updated' => '2016-01-06T14:15:14.000-0500' }, 'expand' => 'operations,versionedRepresentations,editmeta,changelog, +transitions,renderedFields', 'self' => 'https://example.net/rest/api/2/issue/569825', 'id' => '569825', 'key' => 'TEST-10756' } ];
But I want to get the values for:
customfield_22181 as 'Jira Testing' customfield_11150{'value'} as 'Yes' status-{'name'} as 'ProdStaged' customfield_11780{'value'} as "'Sunday', 'Monday',...,'Saturday'"u key as 'TEST-10756' + other customfields

Please advise.
Thanks

Code tags added by GrandFather


In reply to Getting specific field values from JIRA rest/api output using JSON::XS and array of hashes by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.