Forums

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

How to qurey the subtasks of cernatin issue types

Toomas Adson
Contributor
February 1, 2024

Hi

Users needs to see subtasks to a different task types, as separate filters.  Let say I have issues  issutype1 with subtasks

  • Task  key1,
    • Subtask key 11
    • Subtask key 12
  • Task key2 -
    • Subtaks key 21

And issuetype2

  • Task key3
    • Subtaks key31
  • Task 4
    • Subtaks key 41
    • Subtaks key 42

Filter1: Show all subtasks of all tasks that are issyetype1.    -  Result:

  • Subtask key 11
  • Subtask key 12
  • Subtask key 21

Filter2: Show the subtrasks of all tasks that are issyetype2.  Result:

  • Subtask key 31
  • Subtask key 41
  • Subtask key 42

 

What would be the right querie syntax?

 

1 answer

1 accepted

3 votes
Answer accepted
Laurie Sciutti
Community Champion
February 1, 2024

Hi @Toomas Adson ~ do you use ScriptRunner?  If so, you can use the following:

 

type = Sub-task AND issueFunction in subtasksOf("issuetype = issyetype1")

 

Ref:  https://docs.adaptavist.com/sr4js/8.2.1/features/jql-functions/included-jql-functions/issue-links#subtasksOf  

Toomas Adson
Contributor
February 1, 2024

Thanks, it did solved the problem

Like Laurie Sciutti likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events