How to set recently updated user from multiple user picker to Assignee field?

Hi,

I have a 'Testers' CF of multiple user picker and I am trying to copy 'Testers' custom field value to Assignee field through transition post-function. 

when I update new user to Testers list, list getting sorted and its appending first name of the list to the Assignee field but what I really want to set recent user to the assignee not the first name of the list.

Can any one help me please by using any groovy scripts.

1 answer

0 vote

Maybe I'm missing something but what happens if two users are selected in the 'Testers' custom field? Which user should become the assignee?

Hi Adam,

Example: first I will add 'Frank' to Testers cf and later I can add 'Teju' to the Testers list and now the Teju is the recent user for that list.

I want to set Teju to Assignee field. But the post-function is setting Frank to Assignee field.

We are using this post-function Copy value from field to field (JMWE add-on) . Source to Destination.

This isn't really simple to do because the list in the multi-user picker isn't ordered.

The best you could do is take a diff of the old value and the new value and work out which one was added recently. Still not a great solution.

Is there a particular problem your trying to solve, perhaps there is a better way we can do this?

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 May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

849 views 2 9
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