I am stuck at a problem that probably shouldn't be one.
I want to calculate a future date with Jira automation. The date is x-hours from a given timestamp, where x is a number of hours provided by the Issue.
To calculate the future date, I tried:
{{now.plusHours({{hours}})}}
and
{{now.plusHours(hours)}}
because I wasn't 100% certain about the correct syntax.
The first just returns nothing if I try to log the value, the latter just throws the error
Failed to get value for now.plusHours({{hours: {{now.plusHours({{hours}})}}
To isolate the Issue, I already tried to set hours to a fixed value (e.g. 300) with no success.
Also, I tried the aforementioned syntax directly with a fixed value
{{now.plusHours(300)}} which works just fine.
So I guess the core-question is: How to reference Smart-Values within Functions?
What am I missing?