Forums

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

User input on now.plusHours

Jay Arrera
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2024

I have an automation that requests closes an issue, clones it, and then sets the start time for the cloned issue at an offset start time.

For example, 

{{now.plusHours(12)}}

sets the start date/time to 12 hours from now.

I want the '12' hours to be based in user input when the automation is run, rather than hard-coded to 12.

When I create an input variable, 

 

 {{userInputs.repeatHours}}
I don't know how to embed that into now.plusHours()
This doesn't work: {{
now.plusHours({{userInputs.repeatHours}})}}

1 answer

1 accepted

2 votes
Answer accepted
Trudy Claspill
Community Champion
August 29, 2024

Hello @Jay Arrera 

Welcome to the Atlassian community.

Remove the curly braces around userInputs.repeatHours, inside the parentheses.

Jay Arrera
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 30, 2024

Thank you!

Like John Funk likes this

Suggest an answer

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

Atlassian Community Events