Forums

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

How to fetch custom fields which are marked as locked.

Deleted user
September 29, 2021

Hi All,

I am trying to create a groovy script that should be able to change the context of custom fields. I wanted to change the context of only those custom fields which are not marked as locked. 

Can anyone please help me with this and tell me which all classes and methods we can use for fetching all the custom fields and filter out fields marked as locked.

1 answer

0 votes
Trudy Claspill
Community Champion
September 29, 2021

Hello @[deleted] 

Welcome to the community.

Generally a locked custom field is one that has been created by a plug-in or native Jira functionality which will depend on the configuration of that field remaining unchanged. Because of that, you should not be changing the configuration of that field. Changes may break Jira or Jira plug-in functionality.

Why are you trying to change the context of a locked field?

Deleted user
September 29, 2021

Hello @Trudy Claspill 

Thanks for your response, I don't want to change the context of locked custom fields, I want to filter them out so that the script which I am using for changing the context of the custom fields will filter the fields marked as locked and won't make any changes in those fields.

So is any possible way to filter the locked custom fields from the list of all custom fields?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events