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

1 vote
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 :)

Anybody have any ideas?

Anybody have any ideas?

Anybody have any ideas?

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

187 views 1 17
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