I currently have this JQL for a board
Team = 5314 AND issuetype not in subTaskIssueTypes() AND issuetype != Risk AND (Status != complete OR status changed to Complete after startOfDay(-25) ) ORDER BY Rank ASC
I am trying to also inject a new issue type that is in working status or expected delivery within 30 days
Hi Josh,
I would start by adding one element at a time see what works and when it doesn't return the results you want, and then tweak from there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Very good - where is it breaking down for you? At what point/element does it not provide what you need? Do you get an error? Or it just doesn't return the right results?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The JQL in the code returns fine just when I try to add the second issue type the board times out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So exactly which part of the code is working with no problems?
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.
Team = 5314 AND issuetype not in subTaskIssueTypes() AND issuetype != Risk AND (Status != complete OR status changed to Complete after startOfDay(-25)) OR issuetype = CDRL AND Status != "In Progress" AND ("Expected Delivery Date" >= startOfDay(30d)) ORDER BY issuetype DESC, Rank ASC
So this is what I have right now but the expected delivery date is not filtering out correctly. Its just show all CDRL issue types
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Josh Velez
I believe you have an order of precedence thing happening with the OR clause. Have you tried wrapping the two things you want in parentheses to clarify the OR condition?
Is this what you were trying to query?
Team = 5314
AND
(
(
issuetype NOT IN subTaskIssueTypes()
AND issuetype != Risk
AND (
Status != complete
OR status CHANGED TO Complete AFTER startOfDay(-25)
)
)
OR
(
issuetype = CDRL
AND Status != "In Progress"
AND "Expected Delivery Date" >= startOfDay(30d)
)
)
ORDER BY issuetype DESC, Rank ASC
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So this didnt work. I have the two separate JQLs returning properly but when I combine them it doesnt work.
Team = 5314 AND (issuetype NOT IN subTaskIssueTypes() AND issuetype != Risk AND (Status != complete OR status CHANGED TO Complete AFTER startOfDay(-25)))
Team = 5314 AND (issuetype = CDRL AND Status != "In Progress" AND "Expected Delivery Date" <= startOfMonth(30d))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One more thing to try: completely separate the queries and then OR the result sets.
(
Team = 5314
AND issuetype NOT IN subTaskIssueTypes()
AND issuetype != Risk
AND (
Status != complete
OR status CHANGED TO Complete AFTER startOfDay(-25)
)
)
OR
(
Team = 5314
AND issuetype = CDRL
AND Status != "In Progress"
AND "Expected Delivery Date" >= startOfDay(30d)
)
ORDER BY issuetype DESC, Rank ASC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still not working idk what the issue is when the two JQL are separate they work fine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Josh. At this point I think you have two options:
Best regards,
Bill
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.