Want to know the JQL statement which can provide the result as the no. of ticket has missed the baseline end date, based on the Baseline End date & Resolution date.
I tried with the below statement but it's not giving results due to limitation of clause.
Hi @jivan_patil
JQL can't compare two fields to each other — the right-hand side of a clause has to be a literal value or a function, so resolutiondate > "Baseline End Date" treats the field name as text. That's a JQL limitation, not a syntax issue.
The usual workaround is to have Automation record the result in a field you can query:
missed-baseline, or a checkbox / number field).{{issue.resolutiondate.diff(issue.Baseline End Date).days}} greater than 0. statusCategory = Done AND "Baseline End Date" is not EMPTY to backfill.Then your count is simply labels = missed-baseline (or whatever field you chose).
If you don't want to add fields, the other option is a JQL-extension app — several on the Marketplace support field-to-field comparisons in search.
Hi @jivan_patil
You can use ScriptGenie (full disclosure: I am the developer) to define custom JQL functions. See example below:
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.