Does ScriptRunner issueFactory offer more choices other than issue.assignee & issue.reporter?

Dustin Chamberlain April 28, 2016

I need to see if I can set a ticket creation script for a specific user or Role name not just assignee or reporter?

 

issueFactory = ComponentManager.getInstance().getIssueFactory()

newissue = issueFactory.getIssue()
newissue.setSummary (issue.summary)
newissue.setProject (projectMgr.getProjectByKey(projectKey))
newissue.setIssueType (issue.issueType)
newissue.description = issue.description
newissue.reporter = issue.assignee

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.
October 6, 2016

issueFactory.getIssue() return MutableIssue object. You use further methods of this class. What namely do you want to do?

Suggest an answer

Log in or Sign up to answer