Hi,
I am new to JIRA and using a trial version of JIRA and install Script runner for JIRA, Enhanced Search in my instance.
I am writing a simple script listener as below.
But it says "unable to resolve class com.atlassian.jira.user.util.UserMessageUtil"
Can you help with fixing this issue? - Thanks
// Example: Display a success message after an issue is created
import com.atlassian.jira.user.util.UserMessageUtil
// ... inside a script listener ...
def userMessageUtil = ComponentAccessor.getOSGiComponentInstanceOfType(UserMessageUtil.class)
userMessageUtil.displayInfoMessage(currentUser, "Issue created successfully!")