Forums

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

JCL Query how can I only search issues that are on the Board? Next Gen Project

Andy Makings February 3, 2021

Hi ,

 

I'm new to JCL and I want to query all issues by Label but only if those issues have been moved to the board.

 

I can't see in the documentation what field "Board" or "Backlog" are held in.

 

Can anyone help, please?

 

Many thanks


Andy

2 answers

2 accepted

1 vote
Answer accepted
Trudy Claspill
Community Champion
February 3, 2021

Hello @Andy Makings 

Welcome to the community.

Are you using a Scrum board or Kanban board with your project

For a Scrum board, you would need to add a criteria to your filter to look for issues in the Sprint(s) that are displaying in your Board view.

For Next Gen kanban displaying an issue in the Board view is not simply based on the status of the issue. There is a step that must be executed to move the issue to the Board, from the Backlog. There have been several posts in this community about the inability to either automate the moving of an issue between the Board and the Backlog for a Next Gen Kanban, and about the inability to query based on that attribute of an issue.

In short, you cannot build a query that will retrieve issues from a Next Gen project based on whether or not they have been moved to the Board. Here is one such post.

https://community.atlassian.com/t5/Jira-Software-questions/how-to-find-issues-in-a-next-gen-project-backlog/qaq-p/1060599

Andy Makings February 4, 2021

Thanks Trudy, I was using a Next Gen Project. For the time being I've added a custom field and then added that field to the JCL query. Then used the JCL Query filter in Dashboards etc which appears to be working. Thanks for your response.

1 vote
Answer accepted
Nic Brough -Adaptavist-
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.
February 3, 2021

A board is not a container (and while we're talking about it, a backlog is actually part of a board, with the card display being a different view of a sub-set).  

A board selects a load of issues it might work with.  Issues do not "move to a board", the board selects what to work with based on the data on the issues.

Within the board, there are then further selection criteria depending on the type of board, with the backlog being "everything we haven't done", and the card board view seeing "the current sprint" if it's a scrum board and for kanban, "the stuff we've moved out of backlog to work on" or, if you have no backlog, everything that needs doing.

To work out what is on a board or backlog, you have to work through the same logic the board is doing.  A really simple example of a scrum board:

  • Board filter:  Project = ABC
  • The backlog will then show "Project = ABC, and issues not in the done (end of workflow) status"
  • The board will then show "Project = ABC and issues in the current sprint"

It can be a lot more complex, but that's why there's no "field" for it.

So, for " issues by Label that are on the current scrum board", you could use "Project = ABC and labels = 'your-label' and sprint in openSprints()"

Andy Makings February 4, 2021

Thanks, I was using a Next Gen Project. For the time being I've added a custom field and then added that field to the JCL query. Then used the JCL Query filter in Dashboards etc which appears to be working. Thanks for your response.

Suggest an answer

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

Atlassian Community Events