Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21: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.

×

Forums

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

Question about

Durell Demartini
Contributor
August 9, 2024

Hello,

Is it possible using JQL "issueFunction" (or perhaps another way) to get a list of sub-tasks within parent tickets of a certain issue type and status?  

So, something like:

  • issueFunction in subtasksOf("'issuetype' IN ('Virtual Machine') ") - these sub-tasks

 

  • Parent issuetype = "Virtual Machine" and status = "Patching" - But only from the Parent tickets that are in "Patching" status

I've tried this, but the sub-tasks of an issue are not considered linked issues, so this query doesn't show the sub-tasks:

 

issueFunction in linkedIssuesOf("status = 'Patching'") and resolution is empty

Thanks in advance for any assistance you can offer.

1 answer

1 accepted

4 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 9, 2024

Hello @Durell Demartini 

Do you have ScriptRunner or another JQL-extending app on your instance? "issueFunction" is used to call non-native JQL functions that are often provided by a third party app.

There are a few apps that could give you what you want.

ScriptRunner has the subtasksOf() function

https://docs.adaptavist.com/sr4js/latest/features/jql-functions/included-jql-functions/sub-tasks

JQL Search Extensions has a SubTaskOf() function

https://appfire.atlassian.net/wiki/spaces/JQLSEARCH/pages/604209587/JQL+Search+Extensions+Server+Data+Center#JQLSearchExtensions(Server/DataCenter)-SubTaskOf(jql-query)

JQL Tricks has a parent() function

https://www.j-tricks.com/jqlt-subtask-functions.html

Durell Demartini
Contributor
August 9, 2024

Hi @Trudy Claspill we have ScriptRunner. We were hoping not to have to leverage another addon for now.

Like Lisa Forstberg likes this
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 9, 2024

Then you can use the ScriptRunner subtasksOf() function

https://docs.adaptavist.com/sr4js/latest/features/jql-functions/included-jql-functions/sub-tasks

issueFunction in subtasksOf("issuetype = 'Virtual Machine' and status = 'Patching'")

Like Durell Demartini likes this

Suggest an answer

Log in or Sign up to answer