Google-sheets – Sort GS table by column values into new separate tabs

formulasgoogle sheetsgoogle-sheets-query

What I am trying to achieve:
I have a JIRA table output containing (aside of other columns) task name, story points and logged time.
Story points are meant to be a Scrum story point which defines complexity of a task by Fibonacci sequence (1, 2, 3, 5, 8, 13, …).

So output might be

Task id Story points Worked (h)
0 1 5
1 2 10
2 2 12
3 2 14
4 5 10

And my goal as to take a whole table from sheet (which can hold any number of records- 1, 50, 1000), select records with same story points and put them into separate tabs.

So there will be tabs named: Source, 1, 2, 3, 5, 8, 13, …

Tab 1 will contain

Task id Story points Worked (h)
0 1 5

Tab 2 will contain

Task id Story points Worked (h)
1 2 10
2 2 12
3 2 14

etc.

Is it possible to achieve this somehow in GS? I would like to do that on end of every sprint (output data from Jira, past it in first tab and somehow trigger function which will sort these records for me)?

Best Answer

A simple query formula is all you need for each tab you create.

=QUERY(JiraData!A1:C, "where B=2",1)

Where JiraData is the name of your data tab, B is the column and 2 is the story points.

enter image description here

Functions used: