Just upgraded to Jira 8.1.0 with Adaptavist ScriptRunner for JIRA 126.96.36.199-jira8
Suddenly our ScriptRunner Listeners are failing 100% of time with the following in the logs...
2019-04-10 11:11:16,957 http-nio-80-exec-18 ERROR gstegall 671x20674x1 18lp2y7 10.7.202.3 /secure/QuickEditIssue.jspa [c.o.scriptrunner.runner.AbstractScriptListener] Script function failed on event: com.atlassian.jira.event.issue.IssueEvent, file: <inline script>
Script123.groovy: 1: unable to resolve class com.atlassian.jira.ComponentManager
2019-04-10 11:11:28,066 http-nio-80-exec-52 ERROR cpfeifer_aa 671x20732x1 10xp4ga 10.7.202.3 /secure/AssignIssue.jspa [c.o.scriptrunner.runner.AbstractScriptListener]
When I bring up the script in the editor, it also reports a syntax error on the very first import line for above component.
Has anyone else experienced this issue?
ComponentManager has been deprecated since JIRA 7.11, which is the reason that you cannot resolve this class any longer.
You should migrate to using ComponentAccessor instead, and you may see the API documentation for this class here:
If you have a specific example that uses ComponentManager, feel free to post it here and I'll be happy to show you how you can change it to use ComponentAccessor instead.
How come when I try to import like this....
it tells me unable to resolve class com.atlassian.jira.component.ComponentAccessor?
Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events