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
AUG Leaders

Atlassian Community Events