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

Hung Nguyen May 26, 2015

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
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 6, 2019

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!

0 votes
K_ Yamamoto
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 11, 2017
0 votes
Hung Nguyen May 26, 2015

<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
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2015

What's your javascript?

Suggest an answer

Log in or Sign up to answer