howto set default reporter

Mathias Buchholz May 9, 2016

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? 

 

2 answers

1 vote
JamieA
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.
May 9, 2016

setReporterId takes the user key, not the user name. 

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 9, 2016

How are you expecting an anonymous user to give you the information required to work out who the reporter is?

 

Mathias Buchholz May 9, 2016

Only the support is expected to create anonym issues. 

Mathias Buchholz May 9, 2016

in JIRA there is an "Support"-Account  created.

The Support is able to receive email-Notifications if an support issue is updated.

Of course the project lead (default assignee) is able to set the author/reporter to "support". 

It would be a nice feature having set that by default.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 9, 2016

I'm confused now.  Could you explain the rules for "what to set reporter to" and who is doing it?

Suggest an answer

Log in or Sign up to answer