You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.