Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

JQL Query for Story list with Feature Labels

Is there a way I can build a JIRA JQL query to show a list of stories connected to features with a specific label? My features are in a different project used by our company and the stories all sit in multiple other projects. 

Feature level Project =  "MM1PP"

label = x

Story projects like IOP1, IOP2 etc

2 answers

1 accepted

0 votes
Answer accepted
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 07, 2021

Hi Nicole,

We use the following which is a life saver: plugin: https://kintosoft.atlassian.net/wiki/spaces/LH/pages/51548138/JQL+functions#JQLfunctions-linksHierarchyFilter which you will have to purchase.

 

Actions:

1. Create a new filter that contains all features with label "x" and save it as Filter ABC. e.g

project = MM1PP and and label = "x"

2. Then you create a new filter: issuetype in (story) and issue in  linksHierarchyFilter("Filter ABC")

3. All stories under feature that have label x will display.

0 votes
Hyrum Steffensen {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 07, 2021

Hello Nicole,

Returning linked issues via JQL is not supported out of the box. However, you can do so by using a plugin with JQL support such as Power Scripts. 

For more information on doing this with Power Scripts, please see this documentation.

Your script would look something like:

string [] result;
string [] jql = "key in hasLinks('" + argv[0] + "')";
string [] issues = selectIssues(jql);

for (string issue in issues) {
    string [] linkedIssues = linkedIssues(issue);
    for (string linkedIssue in linkedIssues) {
        if (linkedIssue.issueType == "Story") {
            result += linkedIssue;
        }
    }
}

return result;

The search would look something like the following:

key in silJQLList("scratch.sil", "project = EX AND labels = label1")

Full disclosure, I am a support engineer for Anova Apps, an Appfire Company.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events