can we see a list of field names which have been locked, please ?
for example, I see a few of field like this, while a list would be nice in jira or in jira database.
Sprint LOCKED
JIRA Software sprint field
I know this is an old topic, but it came up on Google when I was trying to figure out this exact thing. I managed to find an answer, so I figured I'd post in case anyone in the future is in my situation.
This SQL query should return a list of all Locked custom fields:
SELECT * FROM managedconfigurationitem
WHERE item_type='CUSTOM_FIELD' AND access_level='LOCKED'
I used it because I needed a list of custom fields that weren't locked when evaluating fields that are no longer in use in our instance (one which I inherited that somehow accumulated over 1,000 custom fields).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I wrote ScriptRunner script for that purpose (for Jira Server):
import com.atlassian.jira.issue.fields.CustomField
import com.atlassian.jira.config.managedconfiguration.ConfigurationItemAccessLevel
import com.atlassian.jira.config.managedconfiguration.ManagedConfigurationItemService
import com.atlassian.jira.component.ComponentAccessor
def cfm = ComponentAccessor.getCustomFieldManager()
ManagedConfigurationItemService managedConfigurationItemService = ComponentAccessor.getComponent(ManagedConfigurationItemService)
List<CustomField> cfs = cfm.getCustomFieldObjects()
List<CustomField> lockedCfs = new ArrayList<>()
cfs.each { CustomField cf ->
if (cf) {
def mci = managedConfigurationItemService.getManagedCustomField(cf)
if (mci && mci.getConfigurationItemAccessLevel() == ConfigurationItemAccessLevel.LOCKED) {
lockedCfs.add(cf)
}
}
}
lockedCfs.each {
log.info it.name
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Go to Admin -> Issues -> Custom fields and read the list, looking for the word "locked".
I'm curious as to why you ask (because it's useless information for anyone other than the current admin checking no-one has messed up the config by hacking the database), and why you didn't already know that was the answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think I scribbled something out for REST once as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.