Hello @netdynamics,
HASH is being returned by my $issue = $jira -> GET("/issue/SMPKB-16?fields=summary,description");
in which I think is workable for us. Dumping $issue via Dumper($issue)
and printing it results in
$VAR1 = {
'key' => 'TEST-7',
'self' => 'http://localhost:2990/jira/rest/api/latest/issue/10100',
'id' => '10100',
'expand' => 'renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations',
'fields' => {
'summary' => 'This is a test issue',
'description' => 'This is a test description for Perl test'
}
};
In order to get the summary and description, here’s what I did:
my $issue = $jira -> GET("/issue/TEST-7?fields=summary,description");
my $fields = $issue->{fields};
print "summary = $fields->{summary}\n";
print "description = $fields->{description}\n";
which resulted in
Disclaimer:
- I only tried perl an hour or so ago to help you with this question, there might be a better way to optimize the code.
- JIRA::REST module is new to me too as it is not an Atlassian supported module
I think this should work with your use case.
Cheers,
Ian