Hello there!
I've been trying for a couple hours to create an automation to fill the due date field with the sum of the current day and the originalEstimate, but have not been successful.
I've tried to create a varieble called estimatedDays
{ "fields": { "estimatedDays": "{{#if(issue.OriginalEstimate)}}{{math.floor(issue.OriginalEstimate / 28800)}}{{/if}}" } }
and then updating the due date field with
{ "fields": { "duedate": "{{now.plusBusinessDays(estimatedDays).format('yyyy-MM-dd')}}" } }
and many different ways, but none of them worked...
Can anyone help?