Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > Spira Custom Reports > Date Compare in ESQL Quer...
I'm trying to do a date comparison in my custom query so that I can create a report that always reports on the last 30 days of test runs. Unfortunately it appears that every method suggested in the IBM documentation does not work in the custom query.
I've tried:
Hi
There are two types of "entity SQL", one by IBM which is not used by Spira, and the other which is from Microsoft, which is the technology being used. So you need to refer to the Microsoft documentation instead:
https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/ef/language-reference/entity-sql-reference
Regards
Jim
Well, that certainly helps to know : )
Ok, for any future readers, I was able to solve my issue with the expression:
WHERE DiffDays(TR.END_DATE, CurrentDateTime()) < 30
Thanks!
Hi,
To extend this, I'd like to report the list of test executed with the results, however only the last result which that test case was tested multiple times.
How can we get that from Entity SQL?
many thanks
And if you have any questions, please email or call us at +1 (202) 558-6885