Forums

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

how to get body in Send Web Request action in automation rule?

IT Brute November 25, 2025

We are in Jira Cloud, Jira Service Management, project is Team Managed. 


I am trying to get all information regarding the user from user name. I need account id, email address etc.

I receive empty body but API GET request works as intended from the browser:

In the response I only get header and not the body. The body is empty.  The request status is 200 and I get all the header information but then "body[ ]".  Again, this works in the browser.
Snipaste_2025-11-25_15-51-48.pngSnipaste_2025-11-25_16-31-18.png

2 answers

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Champion
November 25, 2025

Hello @IT Brute 

What API endpoint are you using?

Can you share with us the configuration of the Send Web Request action? Obscure confidential data but otherwise provide all the details, please.

IT Brute November 26, 2025

Hi @Trudy Claspill mentioned below is the screen shot. 

I am trying to get the account id of the users mentioned as display names (not as user names). When users are mentioned in an email reply they come into Jira as display names. The idea is to extract the mentioned names in the email replies and add the users to a custom field. I can extract the display name, store it in a variable, this variable is {{getSingleValue}}
I have tried just using the user name for 'query' parameter in the URL and result is the same where 'body' is empty


Snipaste_2025-11-26_08-17-02.png

Trudy Claspill
Community Champion
November 26, 2025

Thank you for that additional information.

I think I have identified the problem.

Send Web Request actions do not automatically execute the API call as the Actor of the rule.

In the Headers section of the action you have not provided an API token for the web request, so the API is being executed Anonymously. 

As per the API documentation for the endpoint:

Permissions required: Browse users and groups global permission. Anonymous calls or calls by users without the required permission return empty search results.

 

You will need to provide an API token generated by a user account that has the Browse users and groups Global Permission in order to get data back.

Here are instructions for generating an API token.

https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/#Create-an-API-token

This community article talks about how to encode a token and then add it to the Headers of the Send Web Request.

https://community.atlassian.com/forums/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

 

Let me know if you have any questions.

Like # people like this
IT Brute November 27, 2025

@Trudy Claspill this worked, sent API token in the body of the request and it works. Thanks! 

Like Marc -Devoteam- likes this
0 votes
Marc -Devoteam-
Community Champion
November 26, 2025

Hi @IT Brute 

You will need to use the smart values {{webResponse.body}}

To drill further into the body, use {{webResponse.body.<value>.<value>}}

IT Brute November 26, 2025

Hi @Marc -Devoteam-  the body is empty as you can see from the screenshot I posted with my question. 
I store the value of weResponse.body in a variable and when I log action, the variable has no value. Screenshots below
Snipaste_2025-11-26_08-29-25.png
Snipaste_2025-11-26_08-32-47.png

Marc -Devoteam-
Community Champion
November 26, 2025

Hi @IT Brute 

See @Trudy Claspill explanation.

Sending a web request requires to be done by a user, for this user an API token has to be created and set in the header of the web request action in the automation rule.

The provides links will lead you to the information you need,

Like IT Brute likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events