Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,506,708
Community Members
 
Community Events
180
Community Groups

Filter User Picker Multi Select Value Based on Current User Role or group

Hi,

 

Is there a way to filter the Multi Select User Picker field  based on the Current user's group or role in a screen?

 

Regards

GG

1 answer

0 votes

Hi @GG 

Currently, Jira does not support filtering the Multi Select User Picker field based on the current user's group or role natively.

You can try to achieve this functionality using third-party Jira apps available in the Atlassian Marketplace.

One such app that can help you with this requirement is the "Jira Suite Utilities (JSU)" app.

Regards

Oday

Could you please help me how can I do it in JSU plugin?

Hi @GG , Sure 

Follow these steps to set up a filtered user picker using Jira Suite Utilities:

  • Install the Jira Suite Utilities app from the Atlassian Marketplace.
  • Navigate to your project settings and go to the screens configuration section.
  • Edit the screen where you want to add the filtered user picker.
  • Add a new custom field of type "JSU User Picker" to the screen. You can find this field type under the "Jira Suite Utilities" section when creating a new custom field.
  • Configure the custom field by setting the appropriate filtering criteria based on the user's group or role.
  • Save the configuration, and now the new user picker field will only show users based on the configured criteria.

I hope this will help you 

Hi

Thanks for your response. I want this field to be dynamically filtered based on the current user role or group. For example, Manager 1 can only see the assignees of his group and not other assignees for assign request. At the same time, when Manager 2 log in Jira, can only see the assignees  of her group.

Is it possible?

Hi @GG , 

Yes, it is possible to create a dynamically filtered user picker based on the current user's role or group using Jira Suite Utilities. Please follow the steps again :

Install the Jira Suite Utilities app from the Atlassian Marketplace if you haven't already.


Navigate to your project settings and go to the screens configuration section.


Edit the screen where you want to add the filtered user picker.


Add a new custom field of type "JSU User Picker" to the screen. You can find this field type under the "Jira Suite Utilities" section when creating a new custom field.


Configure the custom field by setting the appropriate filtering criteria based on the user's group or role. To make the field dynamic, you can use the "Current User's Groups" or "Current User's Roles" options in the filtering criteria. This will filter the user picker based on the current user's group or role.


Save the configuration, and now the new user picker field will only show users based on the configured criteria.


Now What should happen, is when Manager 1 logs in to Jira, they will only see assignees in their group, and when Manager 2 logs in, they will only see assignees in their group. This way, the user picker field will be dynamically filtered based on the current user's role or group.

Hope this will help 

Like GG likes this

I added JSU multi-user field then edit Groovy Formula option and then I selected the Issue Option and selected created field. But, I don't know how to use  "Current User's Groups" or "Current User's Roles" options in the filtering criteria. I would be very grateful if you could help me.

To configure the "Current User's Groups" or "Current User's Roles" options in the filtering criteria for the JSU User Picker field:

Go to the Jira project where you want to add the dynamically filtered user picker field.


Click on "Project Settings" from the bottom of the left sidebar, then click on "Screens" from the left sidebar.


Find and click on the screen that you want to add the JSU User Picker field to, then click on "Configure Fields" button in the top-right corner.


Click on "Add Field" button to create a new field, select "JSU User Picker" from the list of field types and then click on "Next".


Give the field a name and then click on "Create".


In the "Custom Field Configuration" screen, click on the "Filtering" tab.


Under the "User Picker Configuration" section, select "JQL Filter" as the filtering type.


Enter the JQL query for filtering the users based on the current user's group or role. For example, to filter the users based on the current user's group, you can use the following query:



issuetype = User AND assignee in membersOf("jira-software-users")


In this example, "jira-software-users" is the group name. You can replace it with your own group name.

Save the field configuration.

Thanks a lot. I can't find it. Is it possible to send a screenshot of the field and steps?

Like Oday Rafeh likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events