How to set current user in custom field in my WorkFlow Post Function

Hi,

I'm using OnDemand, and I created a specific kanban workflow :

BackLog >> ToDo >> InProgress >> WaitingForValidation >> Done

We have to manage the user who validate each issues : so I created a custom user picker Field 'Validator'.

And we want this field to be automatically set when dropping issue to 'Validated' with the current user : Who drop the issue.

I tried to create a post function in the transition 'WaitingForValidation' >> 'Done', but I didn't get the good result.

I thought I could do this with the 'Set field value from User Property value' post function, but impossible to get the list of the 'user properties' that are available.

Somebody can help me ?

Thanks for your time !

3 answers

1 accepted

Thanks peter !

I just found this way, but I couldn't see it before : it comes with the 'JIRA Suite Utilities', wich IS NOT activated by default.

It add a lot of Post Function features, and especially that one 'Update Issue Custom Field' wich can be filled by %%CURRENT_USER%%

regards

Hi Arnaud,

You'll need to use the following post function :

Update Issue Custom Field

Best regards,

Peter

Is there a way to Update Issue Custom Field to %%CURRENT_USER%% only if the field is null?

I tried using *Set Field Value to constant or Groovy expression* but I can't figure out how to write a groovy expression to return the current user.

Ever get it working?

Groovy expressions are not allowed with JIRA OnDemand / Cloud

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

446 views 1 15
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot