How can I display the user name in the Message Custom field from the JIRA toolkit plugin?

Assia Alexandrova January 18, 2016

Is there a variable I can use to show the person who created the issue this field is in?

1 answer

0 votes
Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 18, 2016

You can get display name of issue creator like this:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
Issue issue = ComponentAccessor.getIssueManager().getIssueObject("ZV2-1");
return issue.getCreator().getDisplayName()
Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 18, 2016

This is a script for ScriptRunner

Suggest an answer

Log in or Sign up to answer