You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hello Team,
I want to show only one option i.e. group inside comment restriction for only one specific project and rest of the project should use project roles and group both for restricting comment.Kindly guide me, how we can achieve these through script or through configuration ,if possible.
Thanks and Regards,
Jyoti
There are no built-in or scriptrunner methods for controlling this.
At best, you can use scriptrunner and groovy to identify whether you should limit the list or not, and when you establish that yes, this is the correct context for limiting the groups, then you would inject some Javascript into the page using a Scriptrunner Fragment "Show a Web Panel"
The javascript you inject will need to include some sort of event listener that will watch for group options appearing, then override the list to hide the items you don't want to show.
Using the developer panel in your browser you can examine how the elements are identified.
For example, in my environment, I was able to get the list of groups with this:
AJS.$('#commentLevel-suggestions #groups li')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.