Hello Team
I want to compare my Date Field "Start-Termin" with today Date. But the operator == is not working.
Start-Termin: 21.07.2023
issue.get("Start-Termin") == today -> Result: false
issue.get("Start-Termin") >= today -> Result: true
Thank you
Ozan
Hi,
Try to log/print the today date and the customfield value, may be they have two different format
Thanks Mohamed. I have the solution:
issue.get("customfield_13301").format("dd.MM.yyyy") == today.format("dd.MM.yyyy")
OR
issue.get("customfield_13301").format("dd.MM.yyyy") == new Date().format("dd.MM.yyyy")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.