I also checked the issue created by logging into Atlassian Jira.
How do I check the return value of an issue generated without logging into Atlassian Jira?
I need to be able to check in a Perl environment.
Since Create issue REST API returns a JSON response body, you can check it out by calling something like
print Dumper($issue);
or check if the $issue->{key} exists, which might tell you that an issue has been successfully created. Usually, the HTTP status is checked but I am not sure how it will be done with JIRA::REST module.
my $issue = $jira → GET(“/issue/SMPKB-16?fields=summary,description”);
my $fields = $issue->{fields};
print “summary = $fields->{summary}\n”;
print “description = $fields->{description}\n”;
The results below.
Active code page: 65001
F:\ideaic\perl\site\lib>perl ideaic_interface_jira_get.pl
summary = Issues like this one that are marked as fixed in a released version do not show up in Work mode but are included in the reports
Wide character in print at ideaic_interface_jira_get.pl line 65.
description = 한글 테스트.
F:\ideaic\perl\site\lib>
However, a “wide character in print at” error occurs.
I’ve added the code below, but I get an error.
binmode OUT, ‘:encoding($fields)’;
Hello @netdynamics, for “wide character in print at” warning, one of the solutions is to use the -CS parameter mentioned in this post; I tried it out and it works. There are also perl unicode related documentation in here.