The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Hana Kučerová
Community Champion
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!