The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to find issues without sub-tasks of a particular type?

Amy E.
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 5, 2021

I've used Scriptrunner to find issues with no subtasks using issueFunction not in hasSubtasks(). However, I'm trying to find issues with no subtasks of a particular type. Is this possible?

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
August 5, 2021

Hi @Amy E. there is also function parentsOf with subquery as a parameter. Can you try something like

  • issueFunction in parentsOf("issuetype != Sub-task")

Query should return issues which are parents (has some subtasks) but issue type of the subtask is not Sub-task.

TAGS
AUG Leaders

Atlassian Community Events