How do I specify the manager of an employee in a Rule?

Vincent Luckmann June 26, 2024

Hello everyone,

I have a rule here where I'm trying to specify the manager of an employee.

 

{{issue.customfield_10098.manager}} would be my approach but I have also tried 

 

{{issue.customfield_10098.manager.accountID}}

{{issue.customfield_10098.manager.id}}

 

 

and yes Jira has the permission to read that information out of the directory.

Please help me :( 

 

BR
Vincent

1 answer

0 votes
Duc Thang TRAN
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 26, 2024

Hello @Vincent Luckmann 

Based on your description, I deduce that your custom field name is "manager" and its ID is 10098. If I understand correctly, you want to modify this field via automation

Below is a smartvalue can work if this fied is  type user picker 

{{issue.customfield_10098.displayName}}  

{{issue.customfield_10098.accountId}} 

{{issue.customfield_10098.emailAddress}} 

Hope this can help 

Vincent Luckmann June 26, 2024

Thank you for the fast response but no.

The field is indeed a user picker but the reporter picks the employee and then Jira checks who the manager of that selected employee is and then applies the manager to the approvers, atleast that's what should happen.

BR
Vincent

Duc Thang TRAN
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 26, 2024

@Vincent Luckmann 

Oh, okay, I see. If you don't have too many employees, I think you can create an if/else condition.

If not, I will let someone else who is proficient with webhooks can help you to create an automation that checks and updates the approvers field based on the webhook response.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events