When Lansweeper feeds Jira Service Management Assets, you unlock something bigger than inventory data in JSM, You now have a reliable source for automation. In this post I’ll explain why that matters and show a common example to get you started.
It’s universal, every organization on occasion will need to off board an employee. As an added bonus, This use case is also cross functional usually involiving IT, Facilities, and HR. Most importantly this allows you to reduce risk reduction, asset recovery, license savings, audit readiness.
When an Offboarding request is created, JSM should automatically:
In this Pro-Tip we are focused on the Automation Rule configuration. You’ll need to create a Request Type for Offboarding and use this as the trigger for the automation rule.
Navigate to Global Automation and select create rule.
You will need to adjust your rule to be Global Scope in order to use the Branch function
Step 1: Add Trigger [Work Item Created] with condition applied [Work Item fields Condition]. In your Condition configure to ensure the Request type equals your employee offboarding Request type in JSM

Step 2: Add an Action [Lookup objects]
Select your Lansweeper Assets Schema (LS V2 in our example)
Search objects “User”={{Issue.Employees}}
You’ll need to adjust the AQL query to reflect what field your offboarding user is stored in, in our example this field is called “Employees” , your environment could be different

Step 3: If Block [Smart Values condition]
First value: {{lookupObjects}}
condition: does not equal
second value: NULL or Empty

Step 4: Action [Edit work Item]
Reporters Assets: Key IN ({{lookupObjects}})
Reporter Assets is a custom field with no filter that shows all assets in the schema. This will update the assets custom field with all assets owned or assigned to the user.

Step 5: Action [Comment on work item]
Comment:
The following assets have are assigned to the user and need to be retrieved
{{#lookupObjects}}
- Asset Name: {{Name}} {{Model.Name}}
{{/}}
This will add a line item in the comments box for all assets assigned to the user.
This example was very basic and shows you the power of JSM Automation rules powered by assets. As a next step in your Lansweeper & JSM Assets roadmap journey consider other use cases or build on this use case (consider adjusting the automation rule to add subtasks for each asset that needs to be recovered so that they can be tracked seperatly)
Explore the full platform, free for 14 days.
No credit card required.