Hello All
I am trying to record date and user on a workflow transition. and I have put the following on a workflow post function. Tracker is a single line text field
Update Any Issue Field (JSU)
However, instead of putting date and user, it is just putting the text '%%CURRENT_USER%%' , '%%CURRENT_DATETIME%%' {{initiator.displayName}}
as it is.
Can you please let me know how to do it.
Thanks
Abe
Sorry, I missed the part where you mentioned that the "Tracker" field is a single-line text field.
The %%CURRENT_USER%% macro is going to return the user that executed the transition, but only into a User custom field in Jira (single or multiple user, doesn't matter), while the %%CURRENT_DATETIME%% macro needs to go into a Date or Date/Time Picker field.
Which means that you'll have to have two separate custom fields, one to capture the user that executed the transition and another to capture the time of the transition. So you would also need two separate post-functions.
To clarify, don't include the quote marks. Just use %%CURRENT_DATETIME%% (or %%CURRENT_USER%%) as the value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried just using one of those special macros. For example, just entering %%CURRENT_USER%% and see what's the behavior. If it works, then built up and add the date&time.
Thanks,
Ben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.