i have installed the behavior script runner plugin but it didn't work my me.my jira version is 7.0 and script runner version is 5.1.6.2
Hi @Faiza Kazmi ,
Please use this snippet in the behaviours Initializer :
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
import com.atlassian.jira.component.ComponentAccessor
@BaseScript FieldBehaviours fieldBehaviours
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
def groupManager = ComponentAccessor.getGroupManager()
def yourField = getFieldById("customfield_11011")
yourField.setHidden(!groupManager.getUsersInGroup("reviewer").contains(currentUser))
Antoine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Faiza Kazmi , did that work for you ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.