Change assignee based on custome field in workflow post function

Hi, How do I change assignee depending on the value of a custom field as a post function of workflow transition?

We have a custome field called 'Requesting Client'. If this has a value 'Internal Test Team', the assignee should be changed. This needs to happen as a post function during a particular transition in our workflow.

Thanks

6 answers

1 accepted

This widget could not be displayed.

One of options is following:

Create as many transitions as you have custom field different value options. In each put condition for specific value and post function : "Update Issue Field" for specific assignee value.

I'm not sure this is an option as the users will have to choose from executing two transitions that are logically the same and in some cases the transition will not be allowed and they'll have to choose the other wchich seems confusing to me.

I'm not sure this is an option as the users will have to choose from executing two transitions that are logically the same and in some cases the transition will not be allowed and they'll have to choose the other wchich seems confusing to me.

For example:

==================

Transition 1

Name: ABC

Condition: Value Field (Requesting Client = Internal Test Team

Post function: Update Issue Field (Assignee = some_user)

==================

Transition 2

Name: ABC

Condition: Value Field (Requesting Client != Internal Test Team)

Post function: -

Users will only see one transition(Because of condition(not validator)). So they will choose correct one every time.

Yes you're right, i missed that :)

The only problem is that you cannot have two transitions with the same name.

It's work but It's not completely transparent for the user.

This widget could not be displayed.

You can use a post function from Jira Misc Workflow Exensions("Set Field Value to constant or Groovy expression") to set the asignee field value. It allows putting a groovy condition, so the field will be set only if the condition is true.

This solution looks better but I don't have the experience to make it.

This widget could not be displayed.

Thanks Boris and Andris. I will try these options and post my feedback.

This widget could not be displayed.

Creating 2 transition with different conditions works great. Thank you very much.

This widget could not be displayed.

Can we use this for "create issue" transition? I do not see Conditions for create issue transition. We have JIRA on demand instance.

This widget could not be displayed.

The only problem is that you cannot have two transitions with the same name.

It's work but It's not completely transparent for the user.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

146 views 2 0
Join discussion

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