I have installed the plugin to create the resolved_by and resolved_at fields on the incident table. For existing records, I would like to mass populate these fields pulling data from the audit table using crystal reports and import this data into a temp table.
I tried using a background script (FIRST SCRIPT) and it wouldn't work. When it gets to the second while section, it appears to just go into an infinite loop. So I tired to simplify it (SECOND SCRIPT) and just manually set the value and it still goes through an infinite loop. What am I doing wrong?
FIRST SCRIPT: