Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Batuhan ŞEN May 30, 2022

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

1 vote
Piyush A (STR)
Community Champion
May 30, 2022

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