Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


How to show only group options for comment visibility


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,


1 answer

0 votes
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 03, 2023

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')

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events