Hello all,
I need to set the security level based on the value in a custom field. I'm able to get the correct schemaId, but can't get the line issue.setSecurityLevelId(10108) to actually work.
I've removed all other lines of code and used only the following with no luck whatsoever:
issue.setSecurityLevelId(10108)
I've checked the atlassian-jira.log and nothing shows up. When I use the following:
log.debug("before running issue.setSecurityLevelId((Long)10108)")
issue.setSecurityLevelId((Long)10108)
log.debug("after running issue.setSecurityLevelId((Long)10108)")I do get these log entries:
2017-10-06 12:31:10,937 http-nio-8080-exec-10 DEBUG dbtest2 751x164438x1 vmctwj 192.168.20.143 /servicedesk/customer/portal/195/create/284 [c.o.s.jira.workflow.ScriptWorkflowFunction] before running issue.setSecurityLevelId(10108)
2017-10-06 12:31:10,937 http-nio-8080-exec-10 DEBUG dbtest2 751x164438x1 vmctwj 192.168.20.143 /servicedesk/customer/portal/195/create/284 [c.o.s.jira.workflow.ScriptWorkflowFunction] after running issue.setSecurityLevelId(10108)
I have verified that the user making the request from the portal has the Set Security Level permission on the project. I have no idea what else to check.
Thanks in advance!