Consequences of unlocking some of the locked fields in JIRA?

Tayyab Bashir Community Champion Jul 14, 2016

Hi,

There are a few custom fields (e.g. Rank, Sprint, etc) that are locked by default in JIRA.
From this https://confluence.atlassian.com/jirakb/how-to-unlock-a-locked-field-779158866.html, I gather that it is not recommended to unlock these fields because they might cause unwanted behaviors. 

I haven't been able to find out exactly what might be the consequences of unlocking any of these fields. 
For e.g. I unlocked the field 'Sprint' because I had to make it required in one of the custom fields, but I couldn't see any breaking in JIRA operations or other unwanted behaviors.  


So my question is, has anyone experienced unwanted JIRA behavior after unlocking these fields? 
How can I find out if unlocking is actually affecting the JIRA behavior at all? Or is it just working normally? 
Can this be tested?

Many thanks in advance.  

2 answers

1 accepted

2 votes

I can give you two examples of consequences learned the hard way from one client.

Unlocked sprint field - all the sprint data was lost when they upgraded.  Had to go to a backup and even then we lost a lot of historical sprints.

Unlocked Epic name - the relationships between story and Epic became corrupted, with the wrong Epic name being written onto issues, and eventually, sub-tasks started to get Epic names which were different to their parents.  So the data was nonsense.  Correctable, but not fun.  We think the actual corruption was down to something an add-on was doing, but it was the unlocking of the field that allowed the system to be configured that way.

One reason for locking fields is non-technical - you don't want your admins doing bad things with your system.  For example:

>I unlocked the field 'Sprint' because I had to make it required in one of the custom fields

That is a terrible thing to do, as it completely breaks Scrum.  You should never be automatically jamming things into a sprint on issue creation, you should only add things to a sprint when you plan, with the odd exception when it's important.  That's why it's optional - filling in a sprint on creation should be a very rare occurrence

Tayyab Bashir Community Champion Jul 15, 2016

Hi Nic, thanks for the answer, it helps understand the effect better now.

I had unlocked the Sprint field, made it "Required" in field configuration. Now I have locked it back again. 
Do you think there would still be potential for unwanted/harmful behavior to JIRA? Even after locking the field? (But with 'Required' condition now being applied)

Or should I unlock the field, remove the required restraint, and lock it back again?  

I would remove the constraint, mainly because it's a bad thing to do in terms of usage. I don't expect the config to cause you any technical problems.  You should definitely re-lock the field after making config changes.

The fields being unlocked themselves does not cause a problem directly, but they do allow people to set up situations where things can go wrong.

Tayyab Bashir Community Champion Jul 15, 2016

Thank you for the help. 

1 vote

I haven't seen data being corrupted because a field is unlocked, but the situation Nic describes where some other add-on corrupted the data is possible. I would leave them locked. Use a validator to check that the field has a value

 

The challenge of using a validator on transition is that it does not solve the 'move' case.  People (intentionally or unintentionally) can get around required fields when creating issues as one type that don't require the field, and then move the issue to the type that requires the field.  The move only enforces required fields, nothing in the transition.  Somebody suggested adding the validator on each transition so that the issue can't move through it's workflow without the required field....but that's not great and issues that aren't moved through the workflow remain without the setting, and this creates more complex workflows that must be maintained.  Has to be another way......

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,174 views 6 19
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot