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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.