Hi
We have 2 JSM fields, Components (which we use for our teams - each team is a component) and Assignee.
Currently, there are instances where and assignee is changes, but the Component is not updated to the correct team according to who the assignee is.
For example, a item that the Network team is working on, is re-assigned to John Doe who is a service desk technician. But when it was reassigned, the Component wasn't updated to Service Desk team. This means that our queue filters (set to Components) does not show this item in the correct queue.
I can create an automation to run when the assignee is changed, which will look at the Component and update it if it's incorrect based on the assignee, something like the below. But it's clunky and doesn't look pretty.
Trigger: When assignee is changed
Then if assignee equals Bruce Wayne, Eddy Brockman, Steve Rogers
And component does not equal Modern Workplace
Change component to Modern Workplace.
Else if assignee equals Tony Stark, Bruce Banner, Nick Fury
And component does not equal Network & Cloud
Then change component to Network & Cloud
Else if assignee equals John Doe, Jane Duncan, Daffy Duck, Clark Kent
And component does not equal Service Desk
Then change component to Service Desk
Etc, etc, etc
The issue with this is having to remember to update this rule whenever the team changes.
These fields are also out of the box fields, so they can't be customised.
Is there some way to create/maintain a tablet and point the automation to look at the table?
Or is there another way to do this that is easy to setup and maintain?