Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,381
Community Members
 
Community Events
165
Community Groups

Script Runner - Behavior does not work on view screen. Why is it?

Hi everyone,

I want to make a label field which is System Field on a project to be editable for a specified role.

Like this, 

https://scriptrunner.adaptavist.com/latest/jira/recipes/behaviours/field-readonly-except-role.html

It works but just create or edit screen. For example, except project admins, no one has granted. I tried it using another user which is on Task Requester Role. For creating, it is ok. When Issue is created and i tried edit the issue, It is ok. But in the view screen, label is still there however it has edit icon and task requester can edit.

How can i handle it ? Or any suggestions ?

I want it not to be editable on every screen. Just admins can edit it. But i have to use the label field. I can not remove label field because also another roles(task requester) has to edit the issue except label field.

 

1 answer

Behaviours don't work on the view screen. They only function on the Create/Edit screens and the other screens mentioned https://scriptrunner.adaptavist.com/latest/jira/behaviours-overview.html#_screens . On the view screen, any field with a behaviour on it will simply open an Edit window when clicked, as explained in the documentation. 

 

This post talks about a few other options you could look into, sorry I can't help you out here more!

Suggest an answer

Log in or Sign up to answer
TAGS

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