Hello,
I need to hide a custom fields (Select List , Text Field , Scripted Field) from all of the users- instead 2 users.
Is it possible to do it on Behaviours? This is my code and it's now working on view screen:
import com.atlassian.jira.component.ComponentAccessor;
def Source = getFieldById("customfield_11507")
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
log.warn user
if(user!='dmor(dmor)')
{
Source.setRequired(false)
Source.setHidden(true)
}