Forums

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

ScriptRunner fragment "hide system or plugin UI element" doesn't hide UI elements

Helen
Contributor
May 2, 2023

I'm new to ScriptRunner (v8.1.0) for Jira and I would like to hide the "Create linked issue" entry on the More menu.

I have a script fragment "Hide system or plugin UI element" and selected com.atlassian.jira.jira-quick-edit-plugin:create-linked-issue-item as the item to hide. When I click the Preview button, the result shows "not implemented".

There is no additional information displayed and after saving the fragment, there is no change in the display of the More menu.

I have tried hiding different UI elements and adding a condition to limit the script to a single project, neither of which have made a difference.

The latest documentation indicates that this functionality is available (Adaptavist doco).

I'm not sure whether the preview window is actually a problem, but the inability to hide any field suggests I'm doing something wrong. The screenshot shows exactly what I have; any suggestions?

 

Capture.JPG

 

1 answer

1 accepted

2 votes
Answer accepted
Helen
Contributor
May 3, 2023

Right, not sure why my googling didn't show this earlier, but the condition needs to return false. That's it!

Thanks to this previous question.

The hint is in the note below: "the item will be displayed if the code returns a truthy object".

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.16
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events