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

This widget could not be displayed.

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

This widget could not be displayed.

Hi Arnaud,

You'll need to use the following post function :

Update Issue Custom Field

Best regards,

Peter

This widget could not be displayed.

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 Sign up to answer
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

1,492 views 10 12
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