I would like to append the current user to custom multi-user field in a post function

I have a multi-user field for development resources who collaborated on an issue. When I assign the current user in a post function during a workflow transition, it replaces the contents of the field with the new value.

 

What I am looking for is the ability to append the current user to the field

2 answers

This widget could not be displayed.

Hi Nic,

I actually solved the issue. It was there all along. The Workflow transition has a post functions. One of the post functions is Update Custom Field. The variable to use is %%ADD_CURRENT_USER%%

I was using  CURRENT_USER which would replace the value in the field. I tested the transition and it works.

 Thanks

Excellent, I didn't know that had been added to the plugin - I've always known of %%CURRENT_USER%%, that's been there for years, but it's good to see that. Thanks for the update!

This widget could not be displayed.

You need a post-function that can get the current list, append a new user based on current user and then update with the new list (what you're using now simply sets the value, which overwrites the list).  

Although I've done this with my own plugins and the script runner, I don't think there are plugins that can provide this for Cloud

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...

148 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