Forums

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

Updating Affected Service from webhookdata

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.
June 18, 2023

Hi there,

I have a service name coming in from a webhook and want to use that when a issue is being created based on the webhookdata.

I have this in the additional field section of the "Create Issue" automation, but it just doesn't work.

{
"fields": {
"Affected Services": [
{
"set": {
"Name": "{{webhookData.Service}}"
}
}
]
}
}

 

Not sure what to use to get this to populate when the automation runs.

1 answer

1 accepted

4 votes
Answer accepted
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.
June 18, 2023

Sorted this out based on using a lookup objects into the Services objecttype for the named service then using the ID in the issue create automation

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

Suggest an answer

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

Atlassian Community Events