Forums

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

Automation in assets

Petru Negrusa
Contributor
September 11, 2025

Hello community,

I want to create an automation in Assets, specifically: I have two date fields (Last Check and Next Check), and I want that if a date is entered in the Last Check field, the Next Check field automatically updates to +90 days based on the date in Last Check.

The problem is that the automation step "Then and Attribute Value and Value:" does not work with ${Last Check.plusDays(90)}.
But with a fixed date like 2025-10-15 or just ${Last Check}, it works fine.

As I understand it, my Assets instance does not support plusDays(90).

In the logs, it shows the error:
rlabs-insight-attribute-3401: At least one value must be set;

Is there an alternative to ${Last Check.plusDays(90)}?

P.S. My instance is Data Center.

1 answer

1 vote
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 11, 2025

Hi @Petru Negrusa 

Can you give some mote information, are the data fields mentioned attributes on an object or custom fields.

My assumption is that they are attributes, as you mention an automation in assets.

But as this is on server/DC, you probably need to execute a groovy script, as smart values like plusDays don't work in assets automation

This might give you some more informartion/guidance https://docs.adaptavist.com/sr4js/9.9.0/hapi/work-with-assets-insight#updating-attributes 

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events