In ontology, I’d like to have an action to set a date property and have it automatically calculate into a second date property with an (X+2 week) result.
Additionally, I’d like to be able to manually adjust the result property if I don’t want the X+2 week default.
Any ideas?
Hi there,
Lots of ways to do this.
I’d like to have an action to set a date property and have it automatically calculate into a second date property with an (X+2 week) result
I would recommend creating an ontology edit function using a Typescript V2 repo
This function should take the ontology object you want to edit as a function parameter and edit the two properties with the dates you want.
Additionally, I’d like to be able to manually adjust the result property if I don’t want the X+2 week default.
You can also take an integer as another (optional) function parameter that allows you to dynamically set how many weeks you want to add. If the parameter is null, the code will default to 2 weeks