Hi, everyone!
I don't understand why my code only works with the "Issue Updated" event, but not with the other "CustomFieldUpdatedEvent" event?
import com.atlassian.jira.event.type.EventDispatchOption
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.link.IssueLink;
import java.text.SimpleDateFormat
import java.util.Date
import java.time.temporal.ChronoUnit
import java.time.ZoneId
import static java.time.DayOfWeek.*
def change = event?.getChangeLog()?.getRelated("ChildChangeItem").find {it.field=="myCFname"}
if (change){
def issue = event.getIssue()
....//
....//
Any help is important thanks.