Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I want to import the Project Name or Project Key of the Jira Project using the Jira REST API.

alex seol March 22, 2019

Hi, Team.

Perl environment.

I want to import the Project Name or Project Key of the Jira Project using the Jira REST API.

I created the script below.

my $eProject = $jira -> GET("/project/".$vKey."?expand=projectkeys");
my $eExpand = $eProject->{expand};
print "projectkeys = $eExpand->{projectkeys}\n";

However, errors still occur.

What went wrong?

Waiting for help.

Cheers.

Alex.

1 answer

1 accepted

0 votes
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 26, 2019

Hi Alex,

Could you tell us more about the specific error you get back?   I know we discussed previously that making REST calls in Perl would be aided by the use of the Data::Dumper library, just so that we can see the REST responses.  These responses can probably give us a clue as to the source of the problem here.

Andy

alex seol March 27, 2019

Hi, Andy.

This problem has been resolved.

As You said, I checked the 'return value' of 'Data :: Dumper' and I knew the return value was wrong.(below)

$VAR1 = {
   'lead' => {
   .......
   },
   'name' => 'TESTTESTTEST_001',
   'id' => '10117',
   .......
   'key' => 'TESTTES',
   'description' => '',

Thank you. 

alex.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events