Hello,
I want to run a script which identifies the type of custom field and generates a report. Is this achievable using script runner?
I'm looking for a way to get the type of every custom field.
Thanks a mil.
Hello,
This code would iterate over all custom fields and log all of them with their types
import com.atlassian.jira.component.ComponentAccessor
def customFields = ComponentAccessor.getCustomFieldManager().getCustomFieldObjects()
customFields.each{log.error(it.getFieldName() + " " + it.getCustomFieldType().getName())}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.