Forums

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

How crate a Swimlane grouping by Epik Link and Component

yuri.pinheiro February 7, 2024

Hello.

I`m wanna create a Swimlane grouping by Epik Link and Component, so I expected have the epic on top of all tasks (like we do when select Swimlane method "Epic") inside a Division by component.

Like this:

TodoDoingDone
Component 1
Epic 1
Task 1  
 Task 2 
Component 2
Epic 2
Task 4  
 Task 5 

2 answers

3 votes
Trudy Claspill
Community Champion
February 7, 2024

Hello @yuri.pinheiro 

The only way to do that natively, and only for a Company Managed project board, is to use the Queries options for Swimlanes and explicitly create a JQL for each Epic+Component combination.

yuri.pinheiro February 7, 2024

Hey @Trudy Claspill , tks or answer.

I`ve trying do this for hours, but unsuccessfully. 

This is my last shot:

project = "ASSV" AND (issuetype in (Story, Task, Sub-task) AND component = "Salesforce" OR issuetype = Epic) ORDER BY "Epic Link"

This is grouping just by "Components". 
 

 

yuri.pinheiro February 7, 2024

Do you know how do that, have a example query? 

Trudy Claspill
Community Champion
February 7, 2024

For each swimlane you want to have you will need to create a JQL that explicitly identifies the Epic for that swimlane and the Component. You will have to create multiple such queries, one for each combination of a specific Epic and Component.

The base query would look like this

project = "ASSV" AND component = <name of one Component> AND Parent=<key for an individual epic> 

I notice, though, that you had also indicated that you have Sub-tasks. The above query would retrieve only the issues that are direct children of the specified Epic.

To also get the sub-tasks of those children you need a separate query equivalent to:

subtasks of (project = "ASSV" AND component = <name of one Component> AND Parent=<key for an individual epic> )

And you would then need to combine those queries into one:

(project = "ASSV" AND component = <name of one Component> AND Parent=<key for an individual epic> ) OR (subtasks of (project = "ASSV" AND component = <name of one Component> AND Parent=<key for an individual epic> ))

Jira does not natively provide that type of "subtasks of (issues retrieved by a filter)" functionality. You would need a third party app that extends JQL capabilities, such as ScriptRunner.

Without such a third party app, you will not be able to include the relevant sub-tasks in the swimlane.

0 votes
Kristian Walker _Adaptavist_
Community Champion
February 8, 2024

Hi Yuri,

I can confirm if you use one of the scriptRunner filters then you will need to define these on the Enhanced Search page as they cannot be used directly in the queries for the swimlanes on the board.

Once you have defined your filters on the enhanced search page you can use it in the Swimalabns query by following the steps below.

1. Save the filter and share it (This creates a copy of the filter as a standard Jira filter where we synchronise the list of issue keys returned by the enhanced search filter.)

2. Navigate to the card query section of the board and reference your filter in the JQL box using the JQL like below.

filter='NameOfHisSharedESFilter'

If you want just the enhanced search JQL functions, then we have the standalone Enhanced Search app that provides these at a smaller cost.

Also, I can confirm we have just released the childrenOf() JQL function which will help return all issues and subtasks below an epi.

I hope this helps.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events