Hi all,
I'm trying to set up automation to enter a value in a custom field I've added and I'm stuck.
I'm trying to get the Percentage complete based on the StartDate, Now, and the DueDate.
I know I can manually get the right percentage of work completed (today's date - start date) / (due date - start date).
I can't quite figure out the Jira query to use to provide that value.
{{#=}} ( ({{now.diff(issue.StartDate).days}}) / ({{issue.dueDate.diff(issue.createdDate).days}} + 0.0001) * 100 ) {{/}}

Bit of a noob to the automation piece of Jira.
Thanks for any direction you can send me.
David