Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,307
Community Members
 
Community Events
185
Community Groups

JSU update field issue

AbrahamA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 28, 2022

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)

  • Issue Field:  Tracker
  • Field Value: '%%CURRENT_USER%%' , '%%CURRENT_DATETIME%%' {{initiator.displayName}}

 

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

3 answers

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.

0 votes
Benjamin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 28, 2022

@AbrahamA ,

 

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

Hello,

 

will this same parameter work on CLoud too?

 

%%CURRENT_USER%%

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events