Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with JQL query

Deepa Tantry February 5, 2018

Hi Team,

Observing difference in results on Grouping issueFunction
Query#1 :
((project = cis AND type = "Change Request" OR project = "Digital Operations - PMO" AND type = Bug) AND created > 2018-01-03 ) AND issueFunction in dateCompare("", "created +14d > resolved ") AND priority in (High) -> Loaded 39 tickets

Query#2 :
((project = cis AND type = "Change Request" OR project = "Digital Operations - PMO" AND type = Bug) AND created > 2018-01-03 ) AND ( issueFunction in dateCompare("", "created +14d > resolved ") AND priority in (High)) -> Loaded 0 tickets

Not sure why there is difference when query with issueFunction is grouped with Priority.

Appreciate any help here!

Thanks in Advance!
Deepa

1 answer

0 votes
Josh Steckler
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2018

If you look just at this part:

( issueFunction in dateCompare("", "created +14d > resolved ") AND priority in (High))

Does it come up with any results?

Then this part:

((project = cis AND type = "Change Request" OR project = "Digital Operations - PMO" AND type = Bug) AND created > 2018-01-03 )

If there are any issues that show up in both, then that's your result.

Basically, looks like there were no high priority issues resolved more than 14 days after creation.

Deepa Tantry February 8, 2018

Thanks for your time Steckler.
This was resolved when using the below JQL

(((project = cis AND type = "Change Request" OR project = "Digital Operations - PMO" AND type = Bug) AND created > 2018-01-03 ) AND issueFunction in dateCompare("", "created +14d > resolved ") AND priority in (High)) 
OR
(((project = cis AND type = "Change Request" OR project = "Digital Operations - PMO" AND type = Bug) AND created > 2018-01-03 ) AND issueFunction in dateCompare("", "created +7d > resolved ") AND priority in (Highest, Critical)

 

Regards,
Deepa

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events