Jira, Scriptrunner - getCurrentUser in Project Automation

Viewed 620

I'm trying to send the currently logged-in user in a Post-Request to a REST-Endpoint when the issue is assigned. I set up a project automation with a ScriptRunner Script. According to several sources (see below) the following should do the magic.

import com.atlassian.jira.component.ComponentAccessor
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()

This snippet works, but it's always my user, that is sent. Doesn't matter if I'm logged in or my colleague. What am I missing? The same problem occurs when I use the built-in field currentUser.

Sources:

0 Answers
Related