Hi
I want to display the Group name of an assignee so that every time assignee changes his/her correct group name is displayed.
Hi @Abhinav Singh ,
Please note that an user can belong to multiple groups. In this case, your requirement needs clarity.
If you think that when assignee is changed and you want to populate another custom field with the group names that the assignee is part of, then you may want to develop a listener.
Let me know, if you are thinking in this direction.
Regards,
Ravi Varma
Thanks Ravi.
I will make sure users are not repeated in Groups. you are right :
"To populate another custom field with the group names that the assignee is part of"
You are happy with the answer, then can you accept it.
If you still need some inputs, please post it and I will try to share my thoughts.
I doubt you will be able to restrict users to just one group - they need to be in at least one group just to log in, and even those of us who use roles as much as possible find ourselves with most users ending up in several groups.
@Nic Brough -Adaptavist- ,
Looks like @Abhinav Singh would like to show the groups that the assignee is part of (as a custom field), by using custom coded listeners. In that case, he has a valid use case.
But, I agree with you that a user in JIRA cannot be enforced to be part of a single group. If @Abhinav Singh is trying to enforce single user - single group rule then this is misleading and he should be aware of how user management is done in JIRA.
@Ravi Varma - indeed. Also, even if you do have a person who is only in one group (which I think we agree is unlikely), the API will still return a list, so the code will have to cope with multiple entries.
It looks like you're new here. Sign in or register to get started.