Scriptrunner - Hide system or plugin UI element

Alexander Raymukanov
Contributor
January 28, 2021

I try to use scriptrunner to hide elements in issue operations menu.

Form is filled so:

2021-01-28 16_25_34-Script Fragments.png

But I still see this menu items, what I do not right?

2021-01-28 16_24_23.png

1 answer

1 accepted

2 votes
Answer accepted
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2021

Hi @Alexander Raymukanov ,

just try "false" instead of "true" :-).

I made exactly the same mistake, when I used it for the first time. It is a little bit confusing, but there's small note about this: Note that the item will be displayed if the code returns a truthy object.

Alexander Raymukanov
Contributor
January 28, 2021

Thanks a lot @Hana Kučerová 

Helen
Contributor
May 3, 2023

I was banging my head against this issue yesterday, thank you!

Suggest an answer

Log in or Sign up to answer