Getting data from issue links fields

I have a set of New Features which I have saved in a Filter called "X Filter". The bugs of all these features are linked to the corresponding feature using "contains a bug(s)" link within issue link. I wanted to get all the bugs of the New Features from the filter "X Filter". 

I usually use the query - issue in linkedissuesfromfilter ("X Filter") and issuetype=bug

But there is a slight issue while using this query. Few features within my filter "X Filter" has dependency with other bugs too. i.e. Say Feature 1 has 2 bugs A and B. Here bug is the actual bug of Feature 1 and bug will be a dependent bug. This dependent bug B is infact a bug of another feature which is not part of the X filter I have created. So when I am using the query -

issue in linkedissuesfromfilter ("X Filter") and issuetype=bug

- I get all bugs (both actual bug and dependent bugs since all of them are linked to the New Feature within my Filter).

I wanted a query which can omit bugs from 'depends on' or 'dependent on' issue link. Or in other words a query which will only give bugs from 'contains a bug(s)' issue link alone from all the features in my filter.

I tried using the scriptrunner too: 

savedfilter = "X Filter" AND issueFunction in hasLinks("contains the bug(s)")

But only features with bugs in contains the bug(s) issue link is displayed using this query. I wanted to display all those bugs from those features

Any query which can serve my purpose?

 

1 answer

1 accepted

This widget could not be displayed.

For script runner the query should be something like link:

issueFunction in linkedIssuesOf('filter = "X Filter"')

Optionally you can have another parameter to only follow one link type.

Are you asking for recursive function, where it follows all the "contains a bug" link? And handles cycles?

Thanks Jamie for the response. Yes, I am looking to get all issues within that "contains a bug" link.

Yeah, but all, or all recursively?

Thanks Jamie, but I got the intended result by modifying the script runner query as you mentioned above. Thanks a lot! :)

No worries.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

55 views 1 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you