Display users in User Picker field based on the value selected in Group Picker field in JIRA DC

Digvijay Singh Gehlot
Contributor
July 17, 2024

Hi Community,

I have created a custom Group Picker field (single group) and a custom User Picker (single user) field in JIRA data-center instance.

My user case is:

  • Select a value in custom Group Picker
  • And search a user in custom User Picker
  • Then the search result (in User Picker field) should only show user(s) who are linked to the selected group value (displaying in Group Picker field).

Please guide on how I can achieve the above case by using scriptrunner, JMWE app or JIRA automations.

Thanks

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2024

Hi @Digvijay Singh Gehlot

In your description, you mentioned:-

I have created a custom Group Picker field (single group) and a custom User Picker (single user) field in JIRA data-center instance.

My user case is:

  • Select a value in custom Group Picker
  • And search a user in custom User Picker
  • Then the search result (in User Picker field) should only show user(s) who are linked to the selected group value (displaying in Group Picker field).

From what you are trying to achieve, ScriptRunner's Behaviour would be the best approach. I am suggesting this because you intend for one field to determine the values available in another field hence, Behaviour is the best approach.

You will need to create a Server-Side Behaviour configuration for the Group Picker field and set the conditions accordingly so it will filter the options in the User Picker field according to the Group that has been selected.

Give this a try. If you are stuck any where, let me know and I will provide a sample code.

Thank you and Kind regards,
Ram

 

TAGS
AUG Leaders

Atlassian Community Events