Forums

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

Syntax for updating affected object based on smart value

Ryan Bullock
Contributor
November 26, 2024

For our incident and change tickets in service management, I'd like to automatically update affected objects based on the affected service the user chooses. This is what I am attempting but I'm not sure what missing:

objectSchema = "IT Assets" AND Application.Name = {{issue.affectedServices}}

Testing with a static value like the below works:

objectSchema = "IT Assets" AND Application.Name = service

So how do I reference another field for the value here?

1 answer

0 votes
Lisa Forstberg
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.
November 27, 2024

Hi @Ryan Bullock ,

Are you trying to update an object in Assets or are you trying to fetch objects in a custom field (application?) on the incident/change?

Could you screenshot your automation and your Asset Schema please? 

I am curious to see the relationship between affected services and application.

 

br

Lisa 

 

 

 

Ryan Bullock
Contributor
December 2, 2024

Sure, I am trying to update a field called "Affected Objects" not updating any objects themselves. "Application" is an attribute of the objects I am looking up. The objects I am looking up are host servers and the Application attribute is reference to the JSM built in Services schema.

The attribute in the object:

image.png

An example of the linked service object:

image.png

Currently as a test, I am just saying when field Affected Services changes, update affected object:

image.png

This does not work, I think it doesn't like the smart value. If for example I enter:

objectSchema = "IT Assets" AND Application.Name = CRS

then it works as expected. So that's my question, how to use a smart value here and/or is there a better way to do 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