Hello,
we use JIRA Software inhouse, Our support should be able to create issues anonymous. (via Web-Gui and not via E-Mail)
that issues habe "anonym" as reporter. How is it able to set the default reporter? (if the user is not logged in)
I tried using the script runner.
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.Issue;
def reporter = issue.getReporterUser();
def issueService = ComponentAccessor.getIssueService();
def issueInputParameters = issueService.newIssueInputParameters();
//get logged in user
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
if (user == null) {
issueInputParameters.setReporterId("support.intern")
}
somehow it isnt succesful. What is the meaning of the user properties? (Key, Username, Name)
for assigning as Reporter: Using Key or Username?