It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can we hide Create Branch when the issue is in certain Status?

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.


4 answers

0 votes
Timothy Community Leader May 26, 2015

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.

0 votes


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!

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you