You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Can I use IF / ELSE blocks with time/date/day of week? If so, how?
When a critical ticket is created
... Then if I'm Monday to Friday, and it's 9AM to 5PM, then I want to assign ticket, and notify in Slack channel with a certain message
... Else I don't want to assign the ticket, and I want to notify in Slack channel a different message
I saw a convoluted solution to do this with JQL - so you get your run on ticket create, and if the priority is critical but then your IF is JQL with the query in - but it's not working consistently, as the trigger timea and JQL and more just aren't working together. So I'd prefer to just use simple smart values and IF/ELSE instead.
I've got this but it's obviously a formula fail!
Hi @Mark Haller
I believe that you can do this with RegEx comparisons. Also, you may also want to account for the time zones, such as from the reporter.
Here are the details, if my image is not clear, using If/Else, with an Advanced Compare Condition with two clauses.
For the day of week use:
For the time range use. Please adjust your time range as desired:
Please watch out for typos when entering RegEx values, as it appears the rule editor can hang when it has a problem parsing them to publish the rule.
Best regards,
Bill
This is really really good stuff @Bill Sheboy. Bookmarking for future possible use.
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.