Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to POST current time in milliseconds in webhook body

Kate December 26, 2022

Hi, everyone!

I need to send post-request with time in milleseconds in body in Automation.

Body is:

{
"date": "1672058157000"

}

I need to replace fixed milliseconds by flexible timing.

I tried :

  • {{now}} 
  • {{now.jiraDateTime}}
  • {{now.plusMillis(1).jiraDateTime}}

 

2 answers

1 accepted

0 votes
Answer accepted
Vamsi Kandala
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.
December 26, 2022

Hi @Kate

Can you try this?

{{#now}}toMillis{{/}}

Thanks,
Vamsi

Kate December 28, 2022

Dear Vamsi,

It works!!! Thank you SO MUCH!

Vamsi Kandala
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.
December 28, 2022

Hi @Kate,

Sounds good.

Can you please select and accept my answer?

Thanks,
Vamsi 

0 votes
Radek Dostál
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.
December 27, 2022

Suggest an answer

Log in or Sign up to answer