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
Hi @Rika Mandasari it should be possible. You need to use Send web request action. Something like that:
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.