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, jira product discovery, jpd premium, product management, idea management, product discovery, jira premium, product planning, atlassian community, product development, roadmap planning, product prioritization, feature management

Introducing Jira Product Discovery Premium ✨

Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.

Learn more
AUG Leaders

Atlassian Community Events