Forums

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

How to show all Assignee groups membership in a view screen

Nicole Millot October 19, 2021

I'd like to display in a  view screen the group membership of the Assignee .

May I use a "custom script field " ? 

Thanks in advance for the help.

Nicole

1 answer

1 accepted

0 votes
Answer accepted
Ravi Sagar _Sparxsys_
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.
October 19, 2021

Hi @Nicole Millot 

You can do this with the help of ScriptRunner for Jira. You can create a Script Field to display current user's groups on Jira issue using something like this.

ComponentAccessor.getGroupManager().getGroupsForUser(userName)

This is just a code snippet, not full code but easy to achieve.

I was wondering why do you want to display this information on the issue?

Ravi

Nicole Millot October 21, 2021

Hello Ravi, Thanks for your answer. In the context of the project , seing the group membership will help to choose an assignee who belongs to the right team. Groups are corresponding to teams.

Nicole Millot October 21, 2021

Hi Ravi, the Script field is ready for use. I was wondering when the update is done. Only each time the field is displayed ? Is it a persistent data, stored in database ?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.51
TAGS
AUG Leaders

Atlassian Community Events