I can't seem to find a way to use a variable inside a smart value. For example:
{{ now.withMinute( {{originalMinutes}} ) }}
...where {{originalMinutes}} is declared earlier in the automation as a math function:
{{#=}} {{issue.customfield_10030.toStartOfDay.diff(issue.customfield_10030).minutes}} - ({{originalHours}} * 60) {{/}}
I'm trying to update a datetime value to a new date, while retaining the time. So far I have all the pieces, but when I go to put them together, they require nesting of some sort, which appears unsupported.
One way around this would be if I could pull the hour, minute, and second attributes directly from the original datetime, but that also appears unsupported (or at least poorly documented).
Atlassian shared with me the solution.
So it is possible to do nesting with variables. Here is how:
Then use the variable like this:
{{now.withMinute(varTemp)}}
Note that you don't need the braces inside the brackets.
Below is my automation which might give you a better understanding. My case: add business days to get Due date to create issues every month with new Due dates.
lovly! Thanks for sharing. This also works in complex regex like:
{{lookupIssues.summary.match("^(?:CR|RW)HighestCycleNumber-(\\d{3})").asNumber.max}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Don't you wish we could upvote Automation feature requests:
Possibility to nest smart values in Automation:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Sean - Welcome to the Atlassian Community!
Take a look at this previous post:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.