Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,993
Community Members
 
Community Events
176
Community Groups

Setting assignee during post function to create issue

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.

1 answer

1 accepted

2 votes
Answer accepted

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. 

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?

No, using Groovy Template instead just allows you to remove the double quotes :) 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS

Atlassian Community Events