Skip to content

Only add project filter in JQL if project is not '' (empty string)#386

Closed
peterwwillis wants to merge 4 commits intoankitpokhrel:mainfrom
peterwwillis:feature/no-project-if-empty
Closed

Only add project filter in JQL if project is not '' (empty string)#386
peterwwillis wants to merge 4 commits intoankitpokhrel:mainfrom
peterwwillis:feature/no-project-if-empty

Conversation

@peterwwillis
Copy link
Contributor

@peterwwillis peterwwillis commented Jun 15, 2022

This change enables you to use jira issue .. commands - particularly, arbitrary JQL commands - without a project filter applied. Just pass an empty string for the project. Probably also works if you edit the config file to use an empty project name, but I haven't tried it.

For example:

$ jira issue list -p '' -q 'assignee IN (currentUser())' --plain
TYPE	KEY		SUMMARY									STATUS
Task	PROJ-123	One project task here							Backlog
Task	FOO-456		Different project here							Backlog

Above works for me to show me my current tickets across projects.

@peterwwillis
Copy link
Contributor Author

@ankitpokhrel thoughts?

@ankitpokhrel
Copy link
Owner

@peterwwillis Thank you for the PR. While this works the solution doesn't seem that flexible. Eg: Doesn't allow us to filter by few specific projects.

Closing in favor of #395

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