Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get user manager from insight

Steve Mélon April 5, 2022

Hello there, 

For one of the project i'm currently on, I need to integrate JSM with Insight, but i'm rather new with insight, still lots to learn :) 

So here is my problem: I would like to create a custom field to get the manager of a given user. I succeeded with getting the user info (aka reporter) from insight by configurating my insight custom field as follow : 

"Jira User"= ${customfield_12713}

But I would like to have access to its manager in a separate custom field.

Any idea how i can achieve that? 

Here is the insight object overview.

Hope you can help!

Cheers,

Steve 

Capture d’écran 2022-04-05 à 13.44.01.png

1 answer

0 votes
Björn Gullander
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.
April 19, 2022

If your Manager field is an Insight field you can set the Manager field automatically in the Manager field's custom field configuration. 

Set "Filter assign scope" to: (where customfield_xxxx is the User field)

object having inboundReferences(Key = ${customfield_xxxxx})

 Check the "Assign strict", If you want the field to always be updated whenever the User field is updated. Otherwise it will only be updated on Create.

Could also be done in a post function if you want to do it in a specific transition. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events