Hello,
we migrated from JIRA 7 to 8.5.
Now I have errors with a behavior that work great before migration.
import com.atlassian.crowd.embedded.api.User
import com.atlassian.jira.component.pico.ComponentManager
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.CustomFieldManager
import com.atlassian.jira.issue.MutableIssue
ComponentManager componentManager = ComponentManager.getInstance()
Object fieldID = getFieldById("Application")
MutableIssue currentIssue = componentManager.getIssueManager().getIssueObject(Long.parseLong(fieldID.value))
FormField pr_field = getFieldById("Application")
def isPR = componentManager.getUserUtil().getGroupNamesForUser(currentIssue.getReporter
User().getDisplayName()).contains("Groupe-P2B-Application_2")
if(!isPR){
pr_field.setHidden(false)
pr_field.setRequired(true)
}
help please ?
Thanks,
BR
Fayçal