How to automatically append current user to custom multi user picker field during workflow transition?

I have a custom multi user picker field that I am looking to update automatically during a workflow transition, but I am looking to add the current user to the custom field and not replace the value. For instance, if we require multiple people to approve a deployment, we'd like to set up it up so that the different approvers can go in and click the "Approve Deployment" button and it will automatically add that current user to the Deployment Approval By custom multi user picker field. On the transition, I know there is a post transaction option to "Update Issue Custom Field" to "%%CURRENT_USER%%". However, that will just overwrite the existing value of the multi-user picker field to that user, not add the user to the value for that field.

I know that I can just make a screen for that transition and force the user to add themselves manually to that field. However, since JIRA also has decided that it's not important enough to allow the ability to restrict multi-user picker fields to certain groups or roles, it's a lot easier to just automatically do it for the user based on their %%CURRENT_USER%% tag instead of forcing them to search the list of all users in the company.

5 answers

This widget could not be displayed.
Paul Greig Atlassian Team Jan 16, 2013

Hi Stephen,

I wanted to let you know that an improvement request has been raised for this item. You can vote on its inclusion here: https://studio.plugins.atlassian.com/browse/JSUTIL-157

Thanks,

Paul

This was perfect for us!! Thanks :)

This widget could not be displayed.

Anybody have any ideas?

This widget could not be displayed.

Anybody have any ideas?

This widget could not be displayed.

Anybody have any ideas?

This widget could not be displayed.

Can't you use the Script Runner Plugin and add a post function to do it?

https://studio.plugins.atlassian.com/wiki/display/GRV/Script+Runner

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

37 views 0 1
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