Create
cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β 
Sign up Log in

Mikes Trello Tips - Calculate a persons age 🧍🏽

Mikes Trello Tips - Calculate a persons age πŸ§πŸ½

I am rubbish with peoples birthdays and ages and have a Trello board to remind me of all the birthdays throughout the year.  

I added an age custom field but didn't want to keep track of that so today I share an automation to calculate the age based on a persons date of birth

ezgif.com-video-to-gif (25).gif

 

What we are doing

The automation

when the custom field "Date" is set, set the custom field "Age" to {date~x} - {customfieldvalue~x} /31556926000

Screenshot 2023-10-15 124637.png

 

Note: This automation will leave you with a horrible number, like 40.2948539483.  See my other article here to round up or down to a whole number
Mikes-Trello-Tips: Round Custom Field Number Up or Down 

2 comments

Robin Warren _Blue Cat Reports_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
December 5, 2023

very useful, thanks Mike πŸ‘

Like β€’ Dreamsuite Mike likes this
Mubarak Hamza
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 25, 2024

It didn't work for  me

I had to make two rules in order to achieve this,

And used one round up rule from mike, and it worked.

 

create two rules.

Rule 1

when custom field "Date of Birth" is set by anyone, set custom field "Age" to "{date~x} - {{%Date of Birth}~x}"

 

Rule 2

when custom field "Age" is set to a number greater than 1 by anyone, set custom field "Age" to "{{%Age}} /31556926000"

 

Rule 3. from mike

when custom field "Age" is set to "regex:/(\d*)\.(\b[0-4]).*/" by anyone, set custom field "Age" to "{wildcard1}"

 

 

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events