Delete Worklog verification scripts causing error

Description

Hi again,
I'm trying to add some small code to the "Delete Worklog" script part, but nothing happened.
I mean, when I click on the icon to delete some worklog, the window didn't appear.

with this simple code:
import com.atlassian.jira.component.ComponentAccessor;

def authenticationContext = ComponentAccessor.getJiraAuthenticationContext();
def projectRoleManager = ComponentAccessor.getComponent(ProjectRoleManager.class);

nothing happens.
if I remove the 2 last lines, the window appears.

any idea ?
regards

Environment

None

Priority

Major

Assignee

Deniz Oğuz

Reporter

Deniz Oğuz

Affects versions

None

Fix versions

None

Labels

None

Source

None

Jira Version

None

Database Type/Version

None

Browser Type/Version

None
Configure