Hey team, this should be working but it isn't. Any ideas why?
I have set up an Assets schema that captures scheduled tasks. One of the attributes is called "Nth of the month". I have a regex expression that forces the format to be <1-4>,<1-7>, as documented here.
As an example, I have an attribute with 3,4 - meaning the third Wednesday of the month.
Using the smart value {{lookupObjects.Nth day of the month}}, it prints out 3,4 as expected. I then store this in a variable called {{nDays}}
However, if I then use {{lookupObjects.Next Scheduled Date.plusMonths(1).Nth day of the month(nDays)}}, it prints nothing.
I've confirmed that {{lookupObjects.Next Scheduled Date.plusMonths(1).Nth day of the month(3,4)}} works fine.
I've tried to use .toString, .asNumber, .htmlEncode, .xmlEncode, .jsonEncode, but still nothing.
Found a way around using a hardcoded lookup table with all possible permutations of <1-4>, <1-7> combo.
Hello @Danielle Alota
Welcome to the Atlassian community.
When asking for help with an automation rule it will enable us to help you more effectively if you provide screen images of your entire rule, and screen images detailing the steps that use smart values, as well as the details from the rule execution audit log entry.
The link under your "as documented here" text leads to information about smart values related to date/time fields. Can you clarify how that applies to your use of a regex expression to constrain the value added to the attribute?
What type of attribute is "Nth day of the month"?
What value are you getting when you print out
{{lookupObjects.Next Scheduled Date.plusMonths(1).Nth day of the month(3,4)}}
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.