Skip to content

feat: Allow project filter in raw jql#395

Merged
ankitpokhrel merged 3 commits intomainfrom
feat-multiple-project-filter
Jun 20, 2022
Merged

feat: Allow project filter in raw jql#395
ankitpokhrel merged 3 commits intomainfrom
feat-multiple-project-filter

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.

1 participant