How can I resolve asset names in JSM from a ticket?

Tim Kennett August 11, 2024

Hi everyone, 

I need to send an email to an outside client and I can pull all the data I need from JSON customfield_101** etc from the ticket but I can't figure out how to get the name of an asset that I've assigned on the request type or on the form using the same method. 

I presume I am supposed to use a lookup Object reference or Lookup objects method but the examples on the Atlassian website aren't helping. 

From the ticket I can get the 

"customfield_10111": [

{

     "workspaceId": "**********************",

     "id": "********** : **",

     "objectId": "**"

}

and using the details I get from the above entries I can "Manually" resolve the correct information in the assets. Is it even possible? Please ask me for more information if needed. 

Any help would be appreciated. 

Tim

1 answer

1 accepted

5 votes
Answer accepted
Mark Higgins
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 11, 2024

Hi Tim,

Welcome to the community !

Yes, you do need to Lookup the object from Assets.

Inside Automation, there is a Lookup Objects command, that will Lookup the object from your schema.

Screenshot 2024-08-12 130114.png

Once you have done that, all the attributes for the Object will be available via 

{{lookupObjects.<Attribute name>}}

which you can place inside your send email request.

Screenshot 2024-08-12 130327.png

Let me know if I'm on the right track

Cheers

 

Mark

 

Tim Kennett August 11, 2024

Mark SPOT ON!!!!

Thank you for your example!!!!! I can't thank you enough. Its been a thorn in my side for a couple of days now. 

I was on the right track but just needed a GREAT example like yours. 

Thanks again!!!!!!

Tim

Mark Higgins
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 12, 2024

Thanks Tim,

 

Your response has made my day.

 

Mark

Like # people like 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