Forums

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

Scriptrunner Behaviour: hide field by role

Jordi Rodero
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2024

I need to hide a field for USER role, but not for the others.

I have the problem when a user belongs to several roles.

The "except" option does not recognize any role, is this normal?

roles.png

I have also tried to make many scripts that I have seen on the forums but I can't get it to filter by role.

Any suggestions?


JIRA Server v9.12.2
Scriptrunner v8.21.0

 

1 answer

0 votes
Stefan Stadler
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 31, 2024

Hi Jordi,

it should be working exactly as you said.

What is the project mapping you set for this behaviour? Is it even existing? If not, that would explain the missing roles.

You can even set it to be mapped to all projects, which worked out just fine for me in a quick test now.

Regards,

Stefan

Jordi Rodero
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 2, 2024

Thanks for the reply Stefan.

I have a project mapped and the issuetype TASK (which exists in that project).

Stefan Stadler
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 2, 2024

Hi Jordi,

in this case, I cannot see any difference compared to our system, which is running a much older version (7.8). So this might be a regression introduced in some version between yours and ours, which has not yet been reported.

I even checked the change logs for any such mention, but nothing.

So my suggestion would be to open a ticket with the vendor and report it there.

Maybe you can also update here for others to see, once there is any outcome :-)

Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events