We have added some machines as assets in jira. Those machines have 2 attributes: "maintenance date" (type: date) AND "maintenance cycle" in days (type: integer). 7 days before reaching the maintenance date, jira will open a work item for the scheduled maintenance via automation rule.
After resolving this work item, i want to set the new maintenance date to NOW+asset.maintenance cycle.
Whenever i read the asset attribute "maintenance cycle" i can output the value in a protocol action. But if i try to perform mathematical operations (like dividing the value by 2) with this value, it always returns NULL.
For example the asset attribute "maintenance cycle" (integer) holds the value 180, these are the following outputs:
{{object.maintenance cycle}} = 180
{{object.maintenance cycle.asNumber}} = NULL
{{object.maintenance cycle.divide(2)}} = NULL
{{now.plusDays(object.maintenance cycle)}} = NULL
The last smart value i want to use in a edit object action within my automation.