Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Restrict view of certain issue fields

Hi !

I would like to restrict the time tracker field to only some of my project team members. Is there any way to customize view access of fields within an issue?

1 answer

Hi Nair,

If your trying to restrict view access for some members in your team, this can be done with the help of "behavior script using Script Runner". This code will look for the restricted group field, and the user in the group can only view. With the help of Script  Runner plugin this can be achieved.


import com.atlassian.jira.component.ComponentAccessor

import com.atlassian.jira.user.util.UserUtil


// Get pointers to the custom field(s) required

def cf = getFieldByName("Demo Text Field")


// Get the current logged in user

def user = ComponentAccessor.getJiraAuthenticationContext().getUser().name


// Get a pointer to the resticted fields group

UserUtil userUtil = ComponentAccessor.getUserUtil()

def group =  userUtil.getGroupObject("restricted-fields")


// By default hide the field(s) from all users




 // If the user is in the restricted groups field then show the field(s)




If you are trying to restrict view access for certain status of the issue, this can be done with the help of  "workflow condition". 

Add the required users to a group and provide a condition.




Suggest an answer

Log in or Sign up to answer

Community Events

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

Events near you