Hello! I created a series of post function tickets for a workflow using the Clones an issue, and links [ScriptRunner] Function. When the assignee of a ticket closes the original request they become the Reporter on the new request created by the post function ticket.
I can make our Jira admin the user that the post function will run as, but I really am looking for a way to keep the original reporter as the reporter on all the post function tickets so they can track the work being done.
Is there a way to script an additional issue action that can assign the reporter from the original ticket to be the reporter of the ticket generated by the post function? I have looked at the script runner documentation and am curious if anyone has had success with a similar solution.
Hey @Megan Hannon ,
The script that creates the new issue, how exactly are you setting that up?
You should be able to just use a issueInputParamters object and use the setReporter() function during creation.
If you have an existing script you could post that here and we can take a look at how we can amend/expand on it :)
This would then mean getting the Reporter from the triggering issue (most likely iwth a getReporterId() )
Thank you @Dirk Ronsmans
That is a very helpful link! I expanded my script by adding issue.reporterId = sourceIssue.getReporterId() which keeps the reporter on all of the post function tickets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.