Hello,
For the Script fragments there's an option to specify the condition. Is it possible to specify users/user groups in the conditions?
Thank you.
You can write a condition like this
import com.atlassian.jira.component.ComponentAccessordef currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()return ComponentAccessor.getGroupManager().isUserInGroup(currentUser,"jira-administrators")
It would check that the current user belongs to jira-administrators group.
Thanks Alexey, the script works.
Thanks Alexey..this works for me
Alexey Matveev -cPrime- this was very helpful!
It looks like you're new here. Sign in or register to get started.