Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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

2 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.
Oct 03, 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"

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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events