how do I can compare two dates with function dateCompare where one of the dates is "now" or today?
It is a default JQL function, you don't have to use dateCompare (lets you compare two dates on the same issue).
due < now()
or
due < startOfDay()
or
DATE_CUSTOMFIELD < now()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.