Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hide entrys from scrum/kanban board context menu via javascript

Daniel Völker July 14, 2020

We would like to hide "Add flag to issue" from the context menu in the board view.

Tried this but to no avail:

AJS.toInit(function ($) {
  $('.ajs-layer box-shadow active').ajaxComplete(function () {
    AJS.$("#ghx-issue-ctx-action-flag-toggle").hide()
  });
});

 How can we listen to the even and hide the entry with just plain javascript integrated via announcement banner. 

Thank you.

2 answers

1 accepted

0 votes
Answer accepted
Daniel Völker July 14, 2020

Found a solution:

 

if(document.URL.indexOf("rapidView=666") >= 0){
AJS.$(document).on("showLayer", function(){
  $("#ghx-issue-ctx-action-flag-toggle").css("display", "none");
});
}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events