Forums

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

Update jira issue from result json REST API with GET method

afrizal putrawan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 14, 2020

Hi all. 

If i have url Rest api as source data api : Https://xxx/abc/customers/custid1001/contracts/1002100

With method GET. When send that url . The result like this :

{"contracts": [{ "contractNumber": "4000001638", "customerId": "2604215", "productName": "1GP LAP+TV KAC REBRANDING", "productType": "CEL", "initialTransactionType": "POS", "contractStatus": "K", "contractSignatureDate": "2020-02-05T18:16:57.000+07:00", "financialParameter": { "cashPayment": { "amount": 3300000, "currency": "IDR" }, "downPayment": { "amount": 3101000, "currency": "IDR" }, "chargedItems": [ { "amount": { "amount": 199000, "currency": "IDR" }, "itemType": "TARIFF", "itemCode": "TITF_ORIG_FEE" }, { "amount": { "amount": 5000, "currency": "IDR" }, "itemType": "TARIFF", "itemCode": "TITF_MONTHLY_FEE" } ], "providedCreditAmount": { "amount": 6899000, "currency": "IDR" }, "annuity": { "amount": 760500, "currency": "IDR" }, "totalMonthlyPayment": { "amount": 765500, "currency": "IDR" }, "terms": 12, "totalPaymentPerCredit": { "amount": 12486000, "currency": "IDR" } }, "presentedInterestRate": 0.0269, "contractEvents": [ { "type": "CONSUMER_LOAN_DISBURSED", "eventDate": "2020-02-06T10:41:56.000+07:00", "createdBy": "0", "attributes": [ { "code": "DISBURSEMENT_AMOUNT", "value": "6700000" }] }, { "type": "CREATE_CONTRACT", "eventDate": "2020-02-05T18:14:13.000+07:00", "createdBy": "vincentp", "salesroomCode": "0047909OP", "attributes": [] }, { "type": "CONDITIONS_ACCEPTED", "eventDate": "2020-02-05T18:16:59.000+07:00", "createdBy": "ClientZone_User", "attributes": [] }, { "type": "CREATE_APPLICATION", "eventDate": "2020-02-05T18:09:44.000+07:00", "createdBy": "vincentp", "salesroomCode": "0047909OP", "attributes": [] }, { "type": "ARRANGE_APPLICATION", "eventDate": "2020-02-05T18:09:44.000+07:00", "createdBy": "vincentp", "salesroomCode": "0047909OP", "attributes": [] } ] }]} 

And  i want to update issue jira with parameter contact number or ID via Json code use Jira Automation addons. How do that, i try with json code update issue like this : 

"Update" : { 

"Customfield_1320xx" : " this set as contract number from above json code 

}

 I what to change Customfield_1320xx with new value from above json code. Please help me to knnow about logic to get value from json rest api respon with GET method. 

Thnks 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events