Forums

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

set fields via incoming webhook

Nodar Vardiashvili
Contributor
June 12, 2023

 

Hi, I am trying to create ticket and fill fields according to this data. i want to use "hire date" and "last name" . i tried few smart values but not working 

{{webhookData.employees.LastName}}
{{webhookData.Last.Name}}
{{webhookData.Body.LastName}}
{{webhookData.Body.Last.Name}}

 

 

Screenshot 2023-06-12 at 11.04.20 PM.png

1 answer

0 votes
Mikael Sandberg
Community Champion
June 12, 2023

Your incoming variables has spaces in them so try this to get the last name and hire date:

{{webhookData.Body."Last Name"}}

{{webhookData.Body."Hire Date"}}

Nodar Vardiashvili
Contributor
June 12, 2023

 I tried this two field but its empty

Mikael Sandberg
Community Champion
June 13, 2023

How about {{webhookData.fields."Last Name"}} and {{webhookData.fields."Hire Date"}}?

Basically you have to figure out the data coming in, {{webhookData.fields}} should give you both values you are looking for based on your log.

Nodar Vardiashvili
Contributor
June 14, 2023

I tried this but get empty fields

Mikael Sandberg
Community Champion
June 14, 2023

What data do you get if you use {{webhookData.employees}} in a log action? Basically just go down the levels in the JSON file that is coming into the webhook to figure out what gives you the data.

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