am trying to find difference between two dates, the MINUS sign does not work, the datediff function does not work
There is nothing in out-of-the-box JQL to compare date fields. JQL is not an SQL, and so does not have such features.
How often do you need to perform this query?
And just to confirm, are you using Jira Cloud, as your post seems to indicate that? If so, Automation for Jira rules are built-in with that product. And it appears you are using the Premium license level, and so the impact of the execution limits are less likely to impact you if you need to create a rule.
Kind regards,
Bill
Where are you trying to find the difference between these two dates?
Some more information about the feature or scenario would be great :)
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That was a quick response, thank you;
sample Jira JQL on Jira board , below works, however, when I want difference between TWO DATES <typical scenarios is =ticket "technical approval date" should be less than 180days of "release date"> -
I tried datediff function, minus sign symbol - both failed.
sample query
project = S4 AND type = Epic and status in ("In QA", "Ready To Deploy To Production") ORDER BY status DESC
expectation:
project = S4 AND type = Epic and status in ("In QA", "Ready To Deploy To Production") AND
"TDA Approval Date" - "Target End Date" < 180d OR
datediff ("TDA Approval Date", "Target End Date" , "d") < 180d
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do I find difference between two dates using JQL, Atlassian Jira and Jira Plugins
License Information for Jira
Jira v8.22.6
THANK YOU
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This isn't possible natively - but do you have Automation on your Jira instance?
If yes, I would...
...and use this in the JQL search instead :)
Let us know if you'd like more specific instructions on how to do this!
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Ste ... No, I do not have automation .. and yes the confirmation that datediff does not work on Native Jira should suffice for my current task -will try to explore more with automation if possible, thank you so much,
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.