Forums

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

Trying to set the ID of a Request Type based on an incoming webhook

Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 21, 2023

Hi there,

I am passing the Request Type ID into JSM via a webhook.

I want to set that as part of the automation that is creating this issue but I am failing horribly.

In the Additional Fields I have this

 

{
"fields": {
"Affected services": [
{{#lookupObjects}}
{"id": "{{Service ID}}"}{{^last}},{{/}}
{{/}}
],
"Request Type": {
"id": "{{webhookdata.Request}}"
}
}
}

 

webhookdata.Request comes in as a number which matches a request type id.

What should I change here to make this work?

Thanks.

0 answers

Suggest an answer

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

Atlassian Community Events