Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow project filter in raw jql #395

Merged
merged 3 commits into from
Jun 20, 2022

Conversation

ankitpokhrel
Copy link
Owner

@ankitpokhrel ankitpokhrel commented Jun 20, 2022

This change will allow us to use project filter when using a raw JQL.

# List issues from all projects
$ jira issue list -q "project IS NOT EMPTY"

# List issues from some projects
$ jira issue list -q "project IN (PRJ1,PRJ2)"

# List issues from all projects except PRJ1 and PRJ2 that are assigned to me
$ jira issue list -q "project NOT IN (PRJ1,PRJ2) AND assignee IN (currentUser())" 

Project filter with -p will still work for normal usecase.

$ jira issue list -pPRJ2

However, value in -p/--project flag will be discarded if project filter is included in the raw JQL.

# The -p flag will be discarded in this case
$ jira issue list -pPRJ3 -q "project IN (PRJ1,PRJ2)"

Closes #182, #261, #384, #386

@ankitpokhrel ankitpokhrel marked this pull request as ready for review June 20, 2022 10:54
@ankitpokhrel ankitpokhrel merged commit f32f2d8 into main Jun 20, 2022
@ankitpokhrel ankitpokhrel deleted the feat-multiple-project-filter branch June 20, 2022 15:55
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.

None yet

1 participant