Forums

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

Get & Save HTTP Response as variable in Automation Jira

Rika Mandasari
Contributor
August 26, 2021

Hi,

 

I'd like to make a HTTP POST to Xero to make an invoice once a transition issue triggered from Jira. However, Xero has a condition that every 30 mins, it is needed to refresh token (Authorization Bearer). My plan is to make a HTTP GET to Xero to get new token, the token will appeared on HTTP response body/header and save it as a smart value variable on Jira Automation so I can use that smart value as the new generated token.

 

Will it possible? do you have any example on how to get HTTP response body/header on Jira Automation? 

 

 

Thank you

1 answer

2 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
August 28, 2021

Hi @Rika Mandasari it should be possible. You need to use Send web request action. Something like that:

Selection_372.png

You can check How do I access web request response values in subsequent rule actions? menu option to get the documentation, but in subsequent rules you can use something like

Selection_373.png

Sere Walkens July 7, 2023

Hi Martin: I tried but there is nothing when I ask log to show webResponse.body.first.title. I suppose it would show the result of the previous web request, but it doesn't. 

Suggest an answer

Log in or Sign up to answer