Forums

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

Using Assets for Scheduled Tasks - Nth of the Month

Danielle Alota
December 18, 2025

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. 

Annotation 2025-12-18 223338.png

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.

2 answers

1 accepted

2 votes
Answer accepted
Danielle Alota
December 18, 2025

Found a way around using a hardcoded lookup table with all possible permutations of <1-4>, <1-7> combo. 

1 vote
Trudy Claspill
Community Champion
December 18, 2025

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)}}

 

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