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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.