Forums

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

Parsing JSON from incoming webhook

Bojan Virag
Contributor
June 5, 2023

I set up an automation to send a web request to 3rd party via webhook.

This is part of the payload I get back:

{
  "total": 1,
  "rows": [
    {
      "id": 15,
      "avatar": "//avatar",
      "name": "Name",
      "first_name": "FIRST",
      "last_name": "LAST",

I want to access the value of id and set it to a custom field. I created a single line text field and tried using {{webhookdata.rows[0].id}} to set value of the field, but it stays blank.  Not sure what I'm doing wrong - does format of the field matter?

1 answer

1 accepted

4 votes
Answer accepted
Bojan Virag
Contributor
June 5, 2023

If anyone needs, I found the solution. It's {{webhookResponse.body.rows.get(0).id}}

Salah hazaa
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 6, 2025

{{webhookdata.rows[0].id}}

Suggest an answer

Log in or Sign up to answer