Automation for JSM Assets - JSM

Jacek June 15, 2024

Good Day

I am a total beginner with JSM and JSM Assets, so excuse me if some questions are for dummies :)

I have actually created our jsm asset schemas for Hardware, Business Partners, Employees. In the Assets everything is linked and referenced fine and everything looks good. The Objects Employees are all linked with their Atlassian ID.

 

I have created the custom field and am able to search for the laptop of an employee in his created ticket and can add it manually.

But i do not have an clue how to proceed now with an automation. I like to keep it simplest possible. So my idea is to trigger the automation for each issue.reporter and the grab the informations from the assets laptops and link it to the custom field in the jsm ticket.

I appreciate for your ideas and help.

Thank you in advance

J

2 answers

0 votes
Rick Westbrock
Contributor
June 17, 2024

Editing an Assets field requires that you use a valid AQL query so I think you may need an Assets field for the Employees object type on your issues. From there your edit issue fields action would use an AQL query something like this:

objectType = Laptops AND "Assigned User" = {{issue.Employee}}

Jacek June 18, 2024

Hi Rick

Thank you four your answer. Will try tomorrow when i am back at work. 

So it looks that my idea with the aql for the devices in the custom field and the following automation was thought from the false perspective.

 

0 votes
Jacek June 15, 2024

Additonally here the attributes for Objects Laptops

SCR-20240615-levc.png

 

Customn Fiel Config

SCR-20240615-lfgq.png

 

And automation i tried today 

SCR-20240615-lfoi.png

 

Audit Logs

SCR-20240615-lfwi.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events