How to hide Item:browse_link/project_types_main via ScriptRunner

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

This widget could not be displayed.

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 

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) 

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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

514 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you