Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Subquery syntax when using scripted JQL funtion subtasksof(subquery) not working

Kelley Cooper
Contributor
September 11, 2018

If I construct and run the following filter all is well:

project = ABC AND resolution not in (Withdrawn, Duplicate) AND Teamlet = "Team A"

My results do not include any items with Resolution = Withdrawn or Duplicate.

Now, if I try to use the above as the subquery in the subtasksOf JQL function the results are not 100% correct; I created this:

issueFunction in subtasksOf('project = ABC AND resolution not in (Withdrawn, Duplicate) AND Teamlet = "Team A"')

my results include some issues with Resolution = Withdrawn or Duplicate; what am I doing wrong?

1 answer

1 accepted

0 votes
Answer accepted
Mohamed Riza
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 12, 2018

Hi @Kelley Cooper

Do you mean to say that the result shows subtasks have resolutions with Withdrawn and Duplicate? If so, then you may want to change this as follows: 

issueFunction in subtasksOf('project = ABC AND resolution not in (Withdrawn, Duplicate) AND Teamlet = "Team A"') AND resolution not in (Withdrawn, Duplicate) 
Kelley Cooper
Contributor
September 17, 2018

Thank you, @Mohamed Riza!

Suggest an answer

Log in or Sign up to answer