Forums

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

Populate custom user picker (single user) with issue creator upon issue creation

-
Contributor
March 30, 2020

Hi all,

One of our tech leads wants a custom user picker field called "Assigned QA" to automatically be filled with the person who created the issue whenever issues are created in his software project.

What I thought would work was using a Set field value (JMWE add-on) post function to the Create-to-Open transition where the issue.creator would be pulled and populated into the Assigned QA field when an issue is initially created.

This apparently hasn't worked. Is there something that I'm missing in the Groovy value I set?

Screen Shot 2020-03-30 at 9.39.36 AM.png

4 answers

0 votes
-
Contributor
April 1, 2020
  • @John Funk When I tested the script, I didn't seem to get an error when I ran it as a Groovy template. I would get "null" returned, though
  • @David Fischer I did just set my script to Groovy Expression and @Aditya Sastry I shall try that if my current test doesn't work. I've yet to receive feedback from the tech lead so I'll update as I hear back.

Thanks all for the input!

0 votes
Aditya Sastry
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.
March 30, 2020

You can also try currentUser in the value with same value type.

0 votes
David Fischer
Community Champion
March 30, 2020

Hi Ian,

it looks like you selected the "Constant or Groovy Template" value type, but you provided a Groovy expression as the value.

Change the Value Type to "Groovy Expression" and it should work.

0 votes
John Funk
Community Champion
March 30, 2020

Hi Ian - Welcome to the Atlassian Community!

Are you getting any errors you can share? Have you tested it while in the JMWE tool?

Suggest an answer

Log in or Sign up to answer