Using Jira Announcement Banner for Disabling "Log Work" button

<script> setTimeout(function() { if (AJS) { AJS.$("#wp-ts-add-worklog").hide() AJS.$("#announcement-banner").hide(); } }, 100); </script>