Need Help To REST Call

Kumar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 2, 2019

Hi Team,

Recently I have Tried REST Call to Create a Instance in AWS by using the "Easy Integrations for JIRA"  its  a free add-on

adding a jira Post-function on a particular Workflow transition.

so, when ever the workflow transition got executed it will automatically creates a instance in AWS.

So, here I need By Selecting the Value Selected i the Dropdown List the REST needs to call 

example:

Select List Options: AWS

AWS instance Type: t2.micro, t2.nano, t2.small, etc.,

Owner: text Field

in the Work Flow Post Function i have choose the "REST Call" option 

and i have added the

URL :  http://aws_create_ec2_instance 

 Header : Content-Type: application/json

Request: Post

Request Body : {"location":"aws","instance_type":"t2.nano","owner":"xyz", "cost_center":68687}

I published the  workflow.

 

Now, when i create a issue if i execute that particular transition which i added the "Rest call"

post function it will create a ec2 instance in the give url location

 

Now I want if i give another Values like "AWS, instance type: t2.nano, " if i execute the same 

transition i need to create the another instance with the value given in the custom field.

Depends upon the value given need to Call related REST  apis

 

can anyone suggest me how to achieve this

 

Thanks,

Kumar

0 answers

Suggest an answer

Log in or Sign up to answer