Trying to set a field in a ticket in JSM to an object from our Assets

Phillip Jones October 3, 2023

Hello,

Trying to create an automation in our JSM instance to edit a field that is linked to our asset objects.  I set the automation to condition based on simply the request type (all request types will be set to X group in assets).

I've been looking around and I think maybe the syntax is incorrect but I'm unsure of what to use in this case. 
All I want to do is set the object to a specific value, no need to look up any extra values but simply set a static value based on the request type that comes into the portal.

When I set the field to edit, I've tried a few different syntaxes but every time I try to set it I get the same error on the rule when its run which is just:
"An error occurred while requesting remote information:

Bad Request"
I'm not sure what exactly is the issue, I've tried {{object.key}} and {{object.name}}, I've even just tried the key and name without the smart values.
Any help would be appreciated!

1 answer

1 accepted

3 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 3, 2023

Hi @Phillip Jones,

Welcome to Atlassian Community!

When you set an asset field to a value you have to use AQL in order to get the object. Here is an example of an automation that sets the reporter's asset when they submit a request:

Screenshot 2023-10-03 at 1.55.18 PM.png 

In your case if the object is always the same for the specific request type then this AQL should do the trick for you:

"key" = "<object key>" i.e. "key" = "IT-123"

Phillip Jones October 4, 2023

Ahhh thank you! 

Like Mikael Sandberg likes 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