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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.