Filtering Tasks and their Subtasks in JIRA

Featured image for sharing metadata for article

On my JIRA sprint board at work, we've got a set of stories which have subtasks, which are then prioritised using JIRA's priority. However, to make standup a bit more effective, I set up a filter that could allow the team to look at stories that were highest priority first.

Unfortunately this didn't seem to work, as it seemed to filter away any of the subtasks that were present on the board by doing a filter based on:

(priority = Critical OR priority = Blocker)

However, I was able to find that using Udo Brand's suggestion, we can use issueFunction in subtasksOf, as below, which now filters correctly:

(priority = Critical OR priority = Blocker) or (issueFunction in subtasksOf('priority = Critical OR priority = Blocker'))

As noted by Piotr Polak this is only available if you use the Script Runner JIRA plugin - sorry if you don't have that available.

Written by Jamie Tanna's profile image Jamie Tanna on , and last updated on .

Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0.

#blogumentation #jira.

This post was filed under articles.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.