We have a post function set up using JMWE to create an issue in another project when the trigger issue transitions to a specific date.
The new issue has several required fields on create. I have been able to get all of the fields set with the exception of the Assignee field.
No matter how I try to set it, e.g. copy form current issue, set a groovy expression, I am getting an error on transition stating the Assignee field must have a value to create the issue.
How do I set the Assignee field to a specific user when creating an issue via a post function using JWME create issue? Ideally, I would like to use a groovy expression to set the Assignee to a specific user.
Hi @Jeanne Howe ,
can you share the post-function configuration, as well as the exact error message you're getting? Setting the Assignee field should be done the same way other fields are.
To set the assignee to a specific user, select "Set to constant or Groovy Template" and specify the username (login name) of the assignee (without quotes or anything).
And also make sure the Assignee field is present on the Create screen of the issue being created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow, what a fast response!
Thank you David.
I was able to get it working using a groovy expression:
assignee:"ecarroll"
Would I be better off using a Groovy Template?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, using Groovy Template instead just allows you to remove the double quotes :)
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.