I use "Fragments module off Script Runner add-on to hide time tracking for a specific user role.
My script is well configured but users can still see those two fields when they edit or modify issues
In the "Hide What" Section" : I have set all possibilities :
There is my Script :
//Issue issue = issue
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
def roleManager = ComponentAccessor.getComponent(ProjectRoleManager)
def projectRole = roleManager.getProjectRole("Developers")
//if project role Developers does not exist return false
//will return true or false if the user is in DEvelopers role
def isInRole = roleManager.getProjectRoleActors(projectRole, issue.getProjectObject())?.getApplicationUsers()?.contains(user)
Any idea or simple way to do it please ?
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events