Forums

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

Set insight field using automation webhook trigger data?

Jaime Gonzalez February 17, 2022

Hello Community, hope you are all doing well.

I have created a Jira automation to create incidents triggered by a webhook, also using smart values. The rule works; however, I want to add a step to set the Insight field, that represents the hardware objects for our network devices.

I have attempted to set it using the Edit insight field attributes action, and also attempted using the following JSON:

{
"fields": {
"customfield_10128": [
{"value": "{{webhookData.deviceName}}"}
]
}
}

 None of these options have yielded success. The issue is created with all the steps defined in the rule, except for the insight field which is blank every time.

As a note, the value I am receiving via the webhook for the insight object name, does exist in our schema.

Any guidance is much appreciated, best regards.

Jaime

1 answer

0 votes
Mikael Sandberg
Community Champion
February 21, 2022

You should be able to set the field by using the Edit Issue action. That is how I add linked assets when a new request is created. In the Edit Issue, just select the Insight field and you can then set it using a IQL or smart value like this:Screen Shot 2022-02-21 at 3.36.26 PM.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events