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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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()"

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.

1 vote
Answer accepted

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

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,142 views 8 28
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you