Setting reporters manager as approver

Setting reporters manager as approver

Create an automation rule within JSM which you are using as your ITSM project with the below steps to automatically assign a users manager using your synced data.

Automation Step

Configuration

How it works

Automation Step

Configuration

How it works

image-20240320-082343.png

 

image-20240320-082358.png

When a new issue is create, this will trigger the automation

image-20240320-082535.png
image-20240320-082555.png

We add a issue fields condition to add the request types where manager approval is required. Change the value of the issue fields condition to the request types you want this to run against.

image-20240320-083218.png
image-20240320-083205.png

Here we are looking at the schema for the requester, select the Schema you are importing the data into and then use one of the following queries, depending on whether you prefer to use the UPN or Mail attribute primarily for users.

objecttype = "Users" and "UPN" = "{{issue.reporter.emailAddress}}"

objecttype = "Users" and "Mail" = "{{issue.reporter.emailAddress}}"

image-20240320-083426.png
image-20240320-083404.png

To ensure you only retrieve one record, you can check the previous lookup step to ensure it only has a size of 1.

First value:

{{lookupObjects.size}}

Second value:

1

image-20240321-073940.png
image-20240321-073958.png

Then we use the lookup value to set the Approver, we can either use Mail or UPN by adding:

{{lookupObjects.Manager.UPN}}

or

{{lookupObjects.Manager.Mail}}