Post function for setting assignee based on component

In the post-functions for my workflow I am looking to set the assignee to the last person of a project role based on what the component is.  Example: if the component equals "SE", set the assignee to the last user assigned the task from the "SE" project role.

There is a workaround for this where I can create different issues types with different workflows (i.e. SE Bug, ID Bug, Producer Bug).  I am trying to avoid this because if there are 3 issue types and 3 roles in play, that would be 9 workflows.  My hope is one workflow where you can change the component in order to guide which assignee something goes to.

Does anyone know what the post-function for this would look like?

2 answers

Try the "Set Field Value to constant or Groovy expression"

  • Field: Assignee
  • Value: Assignee that you like
  • Conditional Execution: true
  • Groovy Expression: put your logic here.

 

I don't see the option for "Set Field Value to constant or Groovy expression".  Is that from a paid plugin?  I was hoping to do this without anymore plugins.  I do have Script Runner installed though.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

919 views 3 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you