Post Function - %CURRENT_DATETIME%%


i've another problem on Jira. Follow the details

  1. I have  custom Field (type date pik) called "END DATE"
  2. I have a post transition on my workflow (when is the final status the custom field previously descriveb will be updated;
  3. In the post function UPDATE CUSTOM FILED i've inserted %CURRENT_DATETIME%% as suggest by Jira/Add-on
  4. The field is correctly updated with the date of transition


When i try to a query on this field, the query response me always with Zero Element. The problem is that the date is not saved correctly.

Could you help me? I insert e picture for help me in the analisys.

Post_Function.JPGPost_Function_End_Date.JPGQuery Based.JPGQuery_on_Date.JPG


1 answer

0 vote
Mizan Community Champion Oct 26, 2017

What result you get when you use

"End Date" > "2017/10/09" and "End Date" < "2017/10/10" 

it seems like an issue with "=" operator. 

Try to export the result and verify what value is saved in the End Date field . Does it store the date and time value. If yes , this is the issue

Ciao Mizan,
you are right, i've the result. The reason is in the date is present not only date but hh mm : ss
Ex 09/10/2017  12:39:00 

Could you suggest me a function in order to have only the date YYYY /MM /DD ? For me is important.

Now i'm using  %%CURRENT_DATE TIME%% function, Exist Current_Date for istance?
Please help me as soon as possible.

Mizan Community Champion Oct 28, 2017

Sorry Sir .. this is the soonest I could reply you.

Sad news is that I dont know the answer for this.

What you want to achieve ?

Is the workaround insufficient .. did you try anything in the meantime ? Made mistakes ? 

Did you try to search any other date field or update this date field manually and checked if it works as expected ?

Or have you tried %%CURRENT_DATE%%

Ciao Mizan,

i didn't found another solution. 

If i update manually the custom-field i don't have any problem.

My target is to have query in orther to get Defect closed day by day.


Thanks in advance.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

118 views 0 5
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