Forums

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

How do I get the raw json value from a webhook?

Deleted user February 2, 2022

I have an "Incoming webhook" triggered automation rule and need to access the raw json payload (set it in a field)

Using {{webhookData}} as the value just prints in a weird format e.g. {Key=Value,Key2=} instead of json

I tried using the json functions in https://confluence.atlassian.com/automation/json-functions-993924865.html

{{webhookData.asJsonString}} produces nothing

How do I either convert webhookData to a Json or access the raw original payload?

2 answers

1 accepted

1 vote
Answer accepted
Maksim Marholin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 8, 2022

Hi @[deleted]

 

thanks for your question.

 

Unfortunately, this functionality is not available yet.

I’ve linked your suggestion to a related feature request, which counts as an upvote for this ticket.

 

Thanks for letting us know.

Cheers,

Maksim

Kevin Lew [ServiceRocket]
Atlassian Partner
January 23, 2023

Hi @Maksim Marholin

 

Could you please send me the link to the feature request?

 

Thanks!

Maksim Marholin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 23, 2023

hi @Kevin Lew [ServiceRocket]

it's been a while since I did that, so can't find it anymore, and we have also migrated things to a new place, so please, feel free to raise a feature request here https://jira.atlassian.com/projects/AUTO/issues

0 votes
Pramodh M
Community Champion
February 2, 2022

Hi @[deleted] 

Here's how the JSON Parsin goes

Let's say we need to get the full_name 

QW1.png

Here's the Automation

QW2.png

Data populated

QW3.png

Let me know the JSON data and what you want to extract?

Thanks,
Pramodh

Deleted user February 2, 2022

Example payload:
{"key":"value", "key2":"value2"}

I don't want the field values. I know I can do {{webhookData.key}} and get "value" 

I want the ENTIRE JSON string in description

So description = "{"key":"value", "key2":"value2"}"

If I use {{webhookData}}, I get description = "{key=value, key2=value}"

If I use {{webhookData.asJsonString}}, I get description = ""

Like # people like 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