How to retrieve subtasks where the parent task is in a specific status

Deleted user March 21, 2012

As we can't use JQL Tricks in OnDemand to do --issue in parent("status != Open") -- how else can we retrieve just the subtasks where the parent task is in a specific status?

3 answers

0 votes
Tamir Lavi November 20, 2013

Hi guys.

I think I have a workaround.
Using Scripted Field (I named is parentStatus)
And this code as the script:

import com.atlassian.jira.issue.Issue

Issue pi = issue.getParentObject()
if (pi == null) return null

return pi.getStatusObject().getSimpleStatus().getName()

I hope it helps anyone.

0 votes
Bastiaan Jansen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 29, 2012

I'll paste the response from the support case:

it is not possible at this time to perform this through JQL (with the build-in options) Please see the following improvement request for our Jira product here
As you already mentioned it is also not possible to install additional plugins to the OnDemand environment, there is an open improvement request to bundle this specific plugin in future requests. I would like to als you to vote on the request here

0 votes
Ben Thompson
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!
March 21, 2012

I'd like to know how to do this to. On a kanban board I need to display only the tickets whose parents' status is of a particular value. Without this, I'm struggling to find a workaround and I'd really not 'bodge' it already this early in our adoption of Jira.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events