JIRA filter order issues by presense of label

The filter I'm trying to create looks for one of a few labels to show the issue has been sponsored by a certain staff member, if found the issue appears at the top of the filter and if not then I want to arrange by votes.

I'm fairly new to JIRA filters so I don't know to perform the complex queries yet, is this possible to do or would I need an addon to do it?

Example of the ordering I'm afer.

Issue #1 Label: convenor_sponsored Votes: 50

Issue#2 Label treasurer_sponsored Votes: 40

Issue #3 No label Votes 100

2 answers

1 accepted

Found that you can't match wildcard's on labels, probably going to make a custom field on certain issue types then match wildcard on that.

I had a solution to the voting issue as well but I have forgotten it although should be able to work around the issue.

Grant, there is a way to match wildcards on labels. Use the issueFieldMatch function from the Script Runner plugin. It offers "wildcard" matching via regular expression support.

Example:

issueFunction in issueFieldMatch("project = JRA", "labels", "ABC\\d{4}")

Thus, you could use a simple query for every label that contains (say) "_sponsored" and match both "convenor..." and "treasurer..." labels from your system.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 9 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

33 views 0 5
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you