How to hide Item:browse_link/project_types_main via ScriptRunner

Deleted user July 3, 2017

Trying to hide hide Item:browse_link/project_types_main via ScriptRunner, cannot find the item unfortunately. Any hints?project_types.PNG

1 answer

1 accepted

1 vote
Answer accepted
Jonny Carter
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.
November 19, 2017

So, the browse_link/project_types_main is actually a web section, not a web item. The distinction is a a bit fine, but right now the "Hide UI Element" script can only hide Web Items.

One potential workaround might be to create a custom CSS Web Resource that hid the list of project types for you.

#project_type_software {
display: none
}

See https://scriptrunner.adaptavist.com/latest/jira/fragments/WebResource.html#_modifying_css 

Deleted user November 20, 2017

Thanks Jonny, 

 

I got it to work with

#project_types_main {
display:none;
}

and atl.general context, although I'm not sure whether it would work with a specific context also (didn't find out yet which would be the correct one) 

Jonny Carter
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.
November 20, 2017

atl.general seems appropriate, since that menu bar appears on every screen. Good catch on getting the right element ID!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events