Hello Team,
I want to remove customField which is type of scripted field.
I use below lines
def dor = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("fieldor")
CustomFieldManager.removeCustomField(dor)
Above lines giving me below error
groovy.lang.MissingMethodException: No signature of method: static com.atlassian.jira.issue.CustomFieldManager.removeCustomField() is applicable for argument types: (com.atlassian.jira.issue.fields.ImmutableCustomField) values:
hi @Jaspreet Kaur , itshould be
def customfieldmanager = ComponentAccessor.getCustomFieldManager()
def dor = customfieldmanager.getCustomFieldObjectByName("fieldor")
customfieldmanager.removeCustomField(dor)
it will work on server version of Jira,but your question is marked as Cloud, so I'm not sure if your topic is created correctly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.