How can we block the pop-up of create issue from the issue drop down?

On clicking on Issue navigator, it gives some options like : search for issues, create issue, manage filters etc.

The create issue option is opening up a pop-up. We are using some java script and that stops functioning on pop-up screens. We have impleneted the blocking of pop-up from top - right most "Create Issue". As the Issue navigator contains the hidden field having the option of Create Issue, we are not able to block that.

Any quick help will be appreciated.

Thanks,

Swati

6 answers

1 accepted

Hi,

We can hide the create issue.This can be done. You need to create a plugin and you need to add some java script code. With the above you can hide the create issue.I will post the code below.This is just a example to hide the create issue button, you can add more logic if you want.

jQuery(document).ready(function($) {
    JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) {
        hideFunction();
    });
    hideFunction();
    function hideFunction(){
         AJS.$('#issues_new_issue_link_lnk').hide();
    }
});

your atlassian-plugin.xml will look like this

<web-resource key="hidecreateissue-js" name="createissue">
        <description>show or hide create issue in menu
        </description>
        <resource name="hidecreateissue.js" type="download"
            location="templates/js/hidecreateissue.js" />
        <context>atl.general</context>
    </web-resource>

Hope this helps

didn't work for me.

Hi,

Can you post me a screen shot to help you ?

Thanks

Swati Sneha

Thanks for the screen shot, will tell you what to do in few mins.

Using JIRA 6.1.7, I used the below pasted into the Announcement Banner to disable the Issues>Create issues popup.

AJS.$("#find_link").live("click", "#issues_new_issue_link", function(){
   AJS.$("#issues_new_issue_link").live("mousedown", "#issues_new_issue_link_lnk", function(){      AJS.$('#issues_new_issue_link').removeClass('create-issue'); 
   });
});

Tried this in my banner announcement based on the above. No luck. Not working for me in JIRA 6.4.

 

<script type="text/javascript">
(function($) {
 
AJS.$("#find_link").live("click", "#issues_new_issue_link", function(){
   AJS.$("#issues_new_issue_link").live("mousedown", "#issues_new_issue_link_lnk", function(){      AJS.$('#issues_new_issue_link').removeClass('create-issue');
   });
});
 
})(AJS.$);
</script>

 

Ideas? Thanks. --Dave Luke

Does this also require a custom plug-in, like in the original recommendation?

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,801 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot