Disable "create branch" option depending on issue state

I like the "create branch" option, but it is not appropriate in all issue states. There is (in our workflow) no sense in creating a branch for a closed issue, nor for an issue that is not "in progress". We have set some conditions on the transaction from "open" to "in progress", so we cannot use the create branch trigger to move the issue to "in progress". 


Is there a possibility to select in which issue states the "create branch" link is visible?

2 answers

This widget could not be displayed.
Mizan Community Champion Nov 26, 2014

You can write a javascript which will check the status of the issue and remove the development panel from the UI . something like the below script . Not tested its just to guide you . You will need to paste the script in the announcement banner . Try on a test instance first

if (AJS.$.("#status-val").value=="Closed")

Sounds like a promising way forward, but I'd have to learn javascript first to get it to work...

But this will remove the entire dev panel, is there a way to remove only the "create branch" link?

This widget could not be displayed.

The syntactically correct version is

if (AJS.$("#status-val").text() == "Closed")
	{   AJS.$("#viewissue-devstatus-panel").hide()

But in reality, it doesn't work.

It does hide the panel during the initial time while the bug information is refreshing, but at the end the panel is shown back again. Maybe there is another script running after that that rebuilds it.

So it's still unresolved.

We need this capability, but until now, I don't have any better idea how we can do it.

If someone knows, please advice

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

91 views 1 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you