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.
Hi @Gerrit Wahlers,
Have you tried using a temporary variable to store the cycle duration? The below rule works on my side:
Hope this helps!
- Manon
Wow, thank you very much. I could never imagine that i have to create a variable at this point.
Have a nice day!
- Gerrit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.