Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Remove "Delete" from right click / context menu on a board

Is there a way to remove "Delete" from right click / context menu on a board.

People who don't have permission to delete see the menu item and then get an error when clicking on it, but it would be better to just not show it.

I would use a ScriptRunner Script Fragment, but I don't see how that can be done for that menu.

1 answer

0 votes

Why don't you just adjust project permissions to prevent deleting issues? This will automatically hide the context action item.

Otherwise, the script fragment "Hide system or plugin UI element" doesn't work for this context. It's not a proper "web item".

If you try to hide "com.atlassian.jira.plugin.system.issueoperations:delete-issue" it will only hide the delete from the "More" button n the issue, or from the three dots in the issue view in the board.

If you really need to hide that button, the only way I can think of is to write some java script that responds to ajaxComplete event and looks for #ghx-issue-ctx-action-delete then hides the parent <li>. Such javascript can then be deployed with a scriptrunner resource fragment.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

5 mobile apps for Jira Cloud to boost productivity

  It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...

216 views 2 5
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you