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

2 votes
Accepted answer

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

Peter/Arnaud,

I'm not able to get this functionality to work the way I think it's supposed to; when the workflow executes the post-function, I get the literal string %%CURRENT_USER%% rather than the substituted value.  Am I missing something obvious to enable, or is this a problem with my installation?

 

I'm using the cloud solution rather than a hosted one; I'm hoping that this works in both scenarios.  If you could let me know if you've hit this issue or something similar, and even better... If you could let me know how to resolve this, I'd greatly appreciate it.

 

Thanks!

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 Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

91 views 3 4
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