B
Size: a a a
B
ЕР
ЕР
ЕР
A
A
ЕР
ЕР
KF
KF
KF
KF
ЕР
ЕР
ЕР
import com.atlassian.jira.bc.issue.label.LabelService
import com.atlassian.jira.bc.issue.label.LabelService.AddLabelValidationResult
import com.atlassian.jira.component.ComponentAccessor
def authenticationContext = ComponentAccessor.getJiraAuthenticationContext()
def user = authenticationContext.getLoggedInUser()
def labelService = ComponentAccessor.getComponent(LabelService)
["какая-то-метка"].each {String labelName ->
AddLabelValidationResult validationResult = labelService.validateAddLabel(user, issue.id, labelName)
if (!validationResult.errorCollection.hasAnyErrors()) {
labelService.addLabel(user, validationResult, false)
}
}
AM
a
VK
a