I want to get the current user using scriptrunner in jira cloud. I want to add in currentuser name in the comment of an issue. But I couldnot figure out how to do so with scriptrunner in jira cloud. I did try
- currentUser,
- executionUser.displayName
- currentUser?.displayName
- event.user.displayName
But didnot have any luck with them.
Can someone please help?