This macro checks if the current user belongs to a specified group, and if so, displays a block of content. It uses a foreach loop to iterate through the user's groups and compares them with the target group using $StringUtils.equals().
## Show content if user is in the following group
#set($adminGroup = "site-admins") ## Your group name in this line
#foreach ( $item in $user.groups )
#if ( $StringUtils.equals($item.name,$adminGroup) )
## Text below will be printed
<b>Text that will be shown only to site admins</b>
#end
#endShow filtered issues and their relations
Filter Confluence groups based on a specified filter value and display the results in different formats.
Show confetti bursts and a motivational message upon saving an edited page
Shows page creation date
Display Jira issue comments in a table
Retrieve and display labels from a specified space
Display a list of Confluence pages with CSV download feature
Shows worklogs from the Jira issue
Content that is hidden only if a user is in a particular group
Shows H1 headings directly to children's topics for easy navigation.