Is it possible to search and find all parents for issues with a specific attribute?

Hi,

In my team we are using issues of Type: Task and tagging them to a sprint. We do not tag the parent issue of Type: Feature to a sprint, so that our burndown updates automatically when a sub-task of a Feature is set to Done.

I was wondering if it is possible to search and find all parent issues of sub-tasks with a certain field value.

E.g. something like: parent for: { Sprint: One } or something like: has: { parent for: {Sprint: One} }
where "Sprint: One" is a custom field.

Obviously these queries do not work, but is there a way to achieve this?

Best regards,
Maz
4 comments
Comment actions Permalink
Hi Maz_man,

I assume that the following query matches your request:

has: {Parent for} Fix version: One
prettyPrint();

Thank you.
0
Comment actions Permalink
Hi Andrey,

Thank you for your reply.
Unfortunately it doesn't solve my problem. The problem is that the Fix version: One is applied on the parents found by has: {Parent for}, and not on the sub-tasks.

I need to single out sub-tasks that have a certain property, and find the parent features of those singled out sub-tasks.
Is this doable?
0
Comment actions Permalink
Hi Mesfin,

Now it's clear.
In general, the steps look like you need to execute
Parent for: <issue ID> Fix version: One
prettyPrint();
then save this search as a context. Choose the context and execute
has: {Parent for} Fix version: One
prettyPrint();

The problem is first step requires only issues ID as a value, instead of some saved search. So, you need to list all issues you are searching parents for.

Thank you.
0
Comment actions Permalink
I experimented with exactly this, I saved a context:
Parent for<issue ID> Fix version: One which in my case was parent for: TCM-654 Techsson Sprint: {TCM Sprint 11}
Where TCM-654 is an issue ID.

With that saved context selected I used the second query:
has: {Parent for} Fix version: One which in my case was has: {Parent for} Techsson Sprint: {TCM Sprint 11}

This did not return any results although TCM-654 of type: task is a sub-task of another issue of type: feature.
In fact not even the first search that I saved as a context returned any results. Only if i removed the parent for: did it return a result: TCM-654 Techsson Sprint: {TCM Sprint 11}

But applying the second search on this context did not find any results either...

What am I doing wrong?

Best regards,
Mesfin
0

Please sign in to leave a comment.