My code is,
<script>
AJS.toInit(function () {
var new_type = AJS.$("h1").text();
if (new_type == "Create Issue"){
AJS.$('.aui-header .aui-button.aui-button-primary.aui-style').hide(); //for disabling the create button for the particular page
}
});
</script>
The above mentioned code works fine in the snippets and any other action performed after page loads. But, in my scenario I want to hide the create button whenever page gets loaded or refreshed... I don't know where I'm mistaken and I'm also used JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
});
this also not worked....