I have three custom fields:
I want to populate a date in the Cybersec next due that is the difference (in years) of the Cybersec Last completed date according to the number in the Cybersec validity length (years)
This automation results in a success, but for the same year!
{{issue.customfield_13488}}.diff({{issue.customfield_13489}}).Years}}
How can I get it to increment by the number of years in the Cybersec validity length (years) field
You were almost there, you could simply use Date plus function to get the Due date. A valid smart value for the operation would look something like,
{{issue.customfield_13488.plusYears(issue.customfield_13489)}}
You can read more about other smart value date function here.
In case Cybersecurity increment field is of text field type then you would need to convert to a number before using which changes the smart value to,
{{issue.customfield_13488.plusYears(issue.customfield_13489.asNumber)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.