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

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

Field required for specific role


Our developers are required to add specific notes and instructions when resolving a ticket. 

I've created a specific field for them to do this, which is hidden from the client portal, however I'm struggling to get this working properly. 

I've successfully made it mandatory on transition to another status but, the developers don't have (and shouldn't have) the Service Desk Agent role so they can't transition tickets. 

Is there any way to setup a field that is:

  • Hidden from the client portal 
  • Editable by users in certain roles (not Service Desk Agents)


Appreciate I might be missing something in workflows, any advice is mega appreciate as I've read every article and community query around this but just haven't found a resolution


Update -

Never mind, figured out how to do this with conditions in the workflow 


2 answers

1 accepted

Obsolete due to the update of the initial question.

Hi Ana,

I'm not sure if this is what you're trying to achieve but you can set the field to be shown, required and editable only for users in certain roles via Scriptrunner Behaviours.

Just add in the condition to validate if the logged in user is in the certain roles, then the field is showed and required, and it can be edited. 

import com.atlassian.jira.component.ComponentAccessor

def projectRoleManager = ComponentAccessor.getComponent(ProjectRoleManager)
def user = ComponentAccessor.jiraAuthenticationContext.loggedInUser
def remoteUsersRoles = projectRoleManager.getProjectRoles(user, issueContext.projectObject)*.name

def note = getFieldByName("Notes and Instructions")


//If the user's roles contain "Developers"
if ("Developers" in remoteUsersRoles) {
else {

Hope this help! 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

821 views 17 21
Read article

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