Im trying to do a advance compare for todays date specifically and it keeps telling me the condition doesnt match. My end goal is to apply this logic to tell a rule that if the jiradate = 12/25/2022 then dont run.
I'm not quite sure what is it that you want to achieve.
{{now.jiraDate}} yields today's date (now) in the jira format. What you are trying to do is to compare the now date with an expression that returns null ({{now.jiraDate.12/01/2022}}). So what is it that you want to compare? Today's date with a specific date?
Correct, or rather a string of dates...holidays but if I need to compare them individually thats fine. I just cant seem to get it to compare the current date to a set date. I set the others date as today to see if I could get it to work instantly and then from there i could adjust the date as needed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Success. Much appreciated. Is there a way to do multiple dates or can it only be one date at a time?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Multiple dates or multiple ifs?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
dates. I think i got it though by putting or between each date on the second value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good to know!
But in case it doesn't work, try using "contains regex" instead of "equals", and as the second values type something like this:
(2022-01-12|2022-01-14)
where all the dates you want to compare are separated by a |
Kindly mark my answer as accepted in order to help other find proper answers!
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online 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.