Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unlock a locked Jira Software custom field

Vitaliy Lukashov January 28, 2020

One of my fields has LOCKED status, can somebody help me how to change it manually, without scripts?

I need to set this field as a requiered while new request creating.

ThanksUntitled.jpg

2 answers

2 accepted

2 votes
Answer accepted
SITTER Adrien
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.
January 28, 2020

Hi @Vitaliy Lukashov

You can not do this. Epic Link is a system field (added by Jira Agile/Jira Software). All Epic functionnalities on boards depends on this field so it can not be made required like this.

But you can make it required with "Behaviours" which is part of "Script Runner" plug-in.

Regards,

Adrien

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
January 28, 2020

Locked fields are locked by the plugins or core code that needs to protect them from potentially inappropriate change or deletion.

Unless Atlassian documentation explicitly says "you need to unlock this field", you should not unlock them. Some of them probably could be deleted safely, but most will break things if you were to unlock them and change them, let alone delete!

Could we ask why you think you want unlock the fields?  There are a couple of reasons, but I doubt you've actually got one that won't harm your system.

Vitaliy Lukashov January 28, 2020

Hello @Nic Brough -Adaptavist- , I need to make Epic Link field required while creating new Request. Now it's not required and developers forget to fill it when the create the request.

Nic Brough -Adaptavist-
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.
January 28, 2020

Do not do this.  You will break Jira in some "interesting" ways (fortunately non-destructive, you'll just find a whole load of stuff starts failing for no apparent reason)

Use a validator to make the field mandatory on creation, or, if you have Scriptrunner, a Behaviour.

Like # people like this
Vitaliy Lukashov January 29, 2020

@Nic Brough -Adaptavist-hello, I understood you.

But can you please be more detailed about validator, how can I use it? (I'm new in Jira, so it's difficult for me to set it)

Nic Brough -Adaptavist-
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.
January 29, 2020

Edit the workflow you want to make it mandatory on, going into each transition that moves an issue from one status to another, and adding the validators into them.

You will need an app to give you a validator to check that it is filled.

Like Stanislav Kotakov likes this
Vitaliy Lukashov January 30, 2020

@Nic Brough -Adaptavist-Is it possible to do it without addition apps or addons?

Nic Brough -Adaptavist-
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.
January 30, 2020

No, I'm afraid the validators in Jira off-the-shelf are very limited.  But there are loads of apps that provide validators in the marketplace and some are free

Like Stanislav Kotakov likes this
Vitaliy Lukashov January 30, 2020

ok, understood you

Thanks for help

Suggest an answer

Log in or Sign up to answer