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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published 6 hours ago in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

28 views 0 2
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