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

Smart Value help - Date + 1 Day?

Amy Chamberlain May 23, 2023

Hi All!

Trying to schedule an automated page creation. Automation is set to create the page on Monday, but for a meeting on Tuesday (allows us time to collect agenda items.)

The smart value auto-populated in the template says {{now.shortDate}}-- so two questions:

  1. What does this mean and how is it different than {{page.dateFirstPublished}}?
  2. How would I scripted something like [date page is created + 1 date]? Or is this even possible?

 

Thx Atlassian Nerds! From one nerd to another, sending much Atlove.

1 answer

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 24, 2023

The Confluence Automation documentation is very short (they are probably working on that), but the basic are identical with Jira Automation, so you can always go there and try what you see there. Especially, because "date" values probably support the same operators in both products.

And in Jira, it is possible to do date aritmetic like this:

{{now.plusHours(1).shortTime}}

So it would likely work for you:

{{now.plusDays(1).shortTime}}

See: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/

Amy Chamberlain June 7, 2023

Wouldn't the latter be:

{{now.plusDays(1).shortDay}}

...because you're calculating days v. hours? Or is it in fact ".shortTime"?

Thank you so much! This was really helpful @Aron Gombas _Midori_ !

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events