The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Trudy P 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
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events