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.
Hi community, been trying to use automation rule for check if "end date minus start date is >= 30 days". Unfortunately somehow not managing to get this by JQL alone, is this even possible? If not, any suggestions?
(btw, using custom fields 'Start Date' / 'End Date' for this)
Regards, Sascha
You can not do arithmetic in JQL, unfortunately.
What you could do is introducing a new custom field "Duration" and update that with the end_date minus start_date value every time when one of those changes and both are available. It can be done with Automation for Jira using a single automation rule. Or you can do this with a scripted field, there are many apps for that.
Then you test if that field is < 30 in JQL.
Thanks for the swift response, could you elaborate on 'update that with the end_date minus start_date value every time when one of those changes and both are available. ', possibly with an example even?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have Automation for Jira installed? (it is a requirement for this approach)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I have automation for Jira installed and created a custom field as mentioned above
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.