Workflow Validation question

Originally asked by smpark on 29 April 2021 (original question)


Hi,
I’ve refer Complex workflows with advanced validations page.
I saw that text

Ignore workflow conditions and validations
Exalate ignores all conditions and validators when syncing statuses and you don’t need to adapt workflows. This approach is applicable for Jira Server status synchronization.

but I cannot sync my project
I have a Validation that compares today’s date to the date in a custom field. However, an error occurs when syncing. How can I solve this problem?


Answer by Serhiy Onyshchenko on 14 May 2021

Hello, smparkwould setting that custom field to current date from incoming sync script help?
Something like this:

//...
if(replica.status.name == "...") {  issue.status = "..." // your status sync logic
  issue."Date Field" = new Date() //you may use any custom field name like this
}

Regards, Serhiy.