We are using the table transform to join two tables together and then using the FORMATWIKI function to identify all issues that have been updated in the last 3 days and coloring the text to easily identify them.
The issue im running into is when an issue has recently been updated, it doesn't return the date, but a string i.e. "Thursday 4:14 PM" so when formatting the date fields to do a compare of now and the updated time stamp, it returns "NaN".
Is there a good way to handle these?
The following will not evaluate correctly as it sees the updated date as a string
SELECT T1.'parent' [Parent], T1.'Key', T1.'Summary', T1.'Description', T1.'P', T1.'Status', T1.'Updated', CASE WHEN T1.'Updated' >= DATEADD(Day, -7, GETDATE()) THEN FORMATWIKI("{cell:Color=red}Yes{cell}") ELSE "No" End AS 'Recently Updated' FROM T1 ORDER BY T1.'key' asc
The below returns "NaN"
SELECT T1.'parent' [Parent], T1.'Key', T1.'Summary', T1.'Description', T1.'P', T1.'Status', FORMATDATE(T1.'Updated') [Updated], CASE WHEN FORMATDATE(T1.'Updated') >= FORMATDATE(DATEADD(Day, -7, GETDATE())) THEN FORMATWIKI("{cell:Color=red}Yes{cell}") ELSE "No" End AS 'Recently Updated' FROM T1 ORDER BY T1.'key' asc
