Forums

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

Calculate age of an Insight Attribute

Megan Hannon January 20, 2022 edited

Hello Community, 

Is there a way to calculate the age of an Insight attribute using an Insight Automation Rule? I want to create a field that will calculate the service age of our IT equipment.  The calculation would start when a new piece of equipment is entered into Insight. 

 

For example:

Manufactured date : 01/01/2022

Today's date: 01/20/2022

Equipment age: 19 days

 

1 answer

0 votes
Björn Gullander
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.
January 26, 2022

Hi @Megan Hannon 

Try with the following (easiest test is to use the "Add value to the audit log" action):

{{now.diff(object.Created).days}}

where object is the object that triggered the automation.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events