Hi folks.
I need a post function to set the Reporter to the currentuser when they CLONE an issue from template tickets I have created. Something like:
Set Reporter = currentuser if key in (ABC-12345, XYZ-98765)
I know how to set the Reporter to the currentuser when the ticket gets created using:
issue.reporterId = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser().name
but I need to set the Reporter field to the currentuser only when specific tickets get cloned so need that "IF" statement.
Sorry, I'm a PM and don't have the technical skills to figure this out.
Thanks in advance.