Grey out a menu item

Pradeep Pandit October 12, 2015

Hello,

I am new to JIRA / Confluence development and I am trying to figure out how to Grey out a menu item. I can remove the menu item but I would like to grey it out and provide a tool tip explaining to user why it the menu is grayed out.

Thanks for your help in advance.

PP

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Michael Kornatzki
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.
October 12, 2015

You can make a plugin and modify the html with jquery ($AJS).

Pradeep Pandit October 15, 2015

Do you have an example for this? or if you can write down the steps here that would be awesome.

0 votes
GabrielleJ
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.
October 12, 2015

What specific Menu Item? Also, where were you able to remove them? Can you just "disable" that div and provide a tooltip?

Pradeep Pandit October 13, 2015

I have added some menu items under More button in Jira issue. Once I create and link issue to it, I want to disable the menu item so no duplicates/redundant items are created.

GabrielleJ
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.
October 13, 2015

You will just have to put some code in it that will grey it out based on your condition. It should not be that different, just like doing it with any other website.

Pradeep Pandit October 14, 2015

Java code or some css as I am using <stypeclass> in web item.

GabrielleJ
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.
October 15, 2015

Are you using AUI? They have some very nifty examples in their documentation, it shouldn't be that hard to search for it (https://docs.atlassian.com/aui/latest/docs/auiselect2.html)

TAGS
AUG Leaders

Atlassian Community Events