How can the custom field (Asset) input the reporting manager automatically? So that Service Deskt Team can see the requesters reporting manager.
A very important thing to mention about what you are trying to achieve here is that the custom field on your issue will always default to the label so you can't be looking at the employees record, you need to look at the managers record.
I have this exact field setup in my instance and to get it to work, the Reporting Manager needs to be it's own object type. You then need to enter each of the managers as objects and link the user/customer/reporter to the Manager (I do this using a "Manager of User" attribute). You can do this via an import with CSV or manually.
Example of what I mean:
Once you've done that, your custom field configuration would be as follows:
Object schema: Employees
Filter scope (AQL): objectType = "Reporting Manager"
Filter issue scope (AQL): "Manager of User" = currentReporter()
Allow search filtering by these attributes: Name
Object attributes to display on issue view: Name
This will ensure you are returning the correct value to the custom field in your issue.
Then to automate this...
Trigger: When Issue Created
Then Edit Issue Fields : Manager
And the AQL value would be: "Manager Of User" = {{issue.reporter}}
I would also recommend copying this to trigger when the reporter field is changed too, so that it updates the manager field if the reporter is changed on the ticket (e.g. a servicedesk member forwards an email from another user).
Cheers,
Suzi
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.