Post Function - %CURRENT_DATETIME%%

Hello,

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

Problem

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 votes
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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,803 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot