I define a rule to auto log work when user change effort value.
Step 1: Calculate the diffday difference when the developer actual effort field (customfield_19616) changes by subtracting the old value (stored in the customfield_10303 field.because fieldchange.from.value cannot be used). The unit of this field is days.
smart values:
{{#=}}{{issue.fields.customfield_19616.diff(issue.fields.customfield_10303).abs}}{{/}}

Step 2: Convert diffday to hours and store it in the log work field.
smart values: {{#=}}{{diffday}} * 8{{/}}h

Step 3: Store the value of the developer actual effort field in the program_id field to calculate the difference next time.
Smart Value:
{{issue.fields.customfield_19616}}

I try many way but seem it not work. This log show bellow
I'm using Jira v9.12.10

Please help me