We sync our user data from Entra ID using Atlassian Guard and Entra's provisioning. Currently, we can see any user's Manager in Atlassian Home, so we know that information is being pushed from Entra into Jira.
Use Case:
What we are trying to do is set up an approval flow where the Reporter's manager is automatically populated into the "Approving Manager" field (user select).
What I need to be able to do is get the Reporter's Manager (by ID) either from a smart value or from the API and I've not been able to find it anywhere. When I use the API in Postman to pull the User properties, I get the following below:
{
"self": "https://xxx.atlassian.net/rest/api/2/user?accountId=xxx",
"accountId": "<user's account ID>",
"accountType": "atlassian",
"emailAddress": "<user's email address>",
"avatarUrls": {
"48x48": "https://secure.gravatar.com/avatar/9bf6a2607ae9d1e795eed0b78456f34e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAK-5.png",
"24x24": "https://secure.gravatar.com/avatar/9bf6a2607ae9d1e795eed0b78456f34e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAK-5.png",
"16x16": "https://secure.gravatar.com/avatar/9bf6a2607ae9d1e795eed0b78456f34e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAK-5.png",
"32x32": "https://secure.gravatar.com/avatar/9bf6a2607ae9d1e795eed0b78456f34e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAK-5.png"
},
"displayName": "<name of user>",
"active": true,
"locale": "en_US"
},
I haven't tried this yet, but I'm assuming that the Managers name is mentioned as a User Property. Can you try this API to see if it gives you the required details in response : https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-user-properties/#api-rest-api-2-user-properties-propertykey-get
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline 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.