Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need post function to set Reporter field based on field value when cloning an issue

Jeff Stack September 1, 2023

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.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events