Skip to content

feat: filter issues by the absence of label(s)#505

Merged
ankitpokhrel merged 1 commit intoankitpokhrel:mainfrom
martinpovolny:negative_label
Nov 27, 2022
Merged

feat: filter issues by the absence of label(s)#505
ankitpokhrel merged 1 commit intoankitpokhrel:mainfrom
martinpovolny:negative_label

Conversation

@martinpovolny
Copy link
Contributor

you can now do e.g.

jira issues list -l~cna -l~web-rca -l~status-board -l~app-interface

to list issues that have none of the labels above

Copy link
Owner

@ankitpokhrel ankitpokhrel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @martinpovolny, this looks good. Could you please add a test to make sure NotIn method constructs a valid jql query?

@martinpovolny
Copy link
Contributor Author

Added the test, thx for the quick review!

Copy link
Owner

@ankitpokhrel ankitpokhrel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working great, thank you 🎉

The mix of +ve and -ve labels is working good so we can do something like the following:

// Issues with `p1` and `q1` labels that doesn't have `urgent` label
jira issue list -lp1 -lq1 -l~urgent

@ankitpokhrel ankitpokhrel merged commit 9ac3591 into ankitpokhrel:main Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants