Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira Automation: how to send a webrequest to an endpoint secured with OAuth authentication

Venkat June 12, 2024

Hi,

I have created an automation to run when an issue's priority is updated. The action is to reach an endpoint which is protected by OAuth Authorization. How can I achieve this? Is there a way to generate the access token and use it for the Send web request action

image.png

1 answer

0 votes
Rick Westbrock
Contributor
June 17, 2024

Web request actions have smart values which allow you to access the response data so if the token is returned in the "token" element of the JSON response body then you can access it using this smart value: {{webResponse.body.token}}

If you expand the "How do I access web request response values in subsequent rule actions?" section at the bottom of the web request it mentions the {{webResponse.body}} smart value and how to access its elements (along with several other smart values). I tried pasting that text but it won't let me save my comment so here it is in an image instead:

web-request-smart-values.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events