We want to restrict user to be able to Create Branch when the bug is in Open status or in Progress only. Is there any way to hide the Create Branch link for other statuses? I tried to inject some javascript into Announcement Banner but it doesn't work.
Thanks for any advice.
What's your javascript?
<script type='text/javascript'> I used the following javascript: ------------------------------------------------ function contentChanged(){ if (AJS.$("#status-val").text() == "Closed") { AJS.$("#viewissue-devstatus-panel").hide() } } AJS.toInit(contentChanged); JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function(e, context, reason) { contentChanged(); }); ------------------------------ With this, it hid the Create Branch section for few seconds and showed it back up again.
I found similar Q&A here
https://community.atlassian.com/t5/JIRA-questions/Disable-quot-create-branch-quot-option-depending-on-issue-state/qaq-p/222805
Hello,
Thank you for all your feedback and suggestions about this matter.
As we understand that this would be a useful feature for JIRA, we created the following feature request to get it implemented through JIRA UI:
- Disable "create branch" option depending on issue status
Feel free to vote and watch the suggestion to increase its priority and also receive notifications about any updates.
We hope to have a nice tracking of how many users are requiring this functionality and put some effort to get you with any options to configure it. Thanks!
It looks like you're new here. Sign in or register to get started.