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

jira ls enhancements #98

Closed
williamh opened this issue Jul 19, 2017 · 5 comments
Closed

jira ls enhancements #98

williamh opened this issue Jul 19, 2017 · 5 comments

Comments

@williamh
Copy link

Hello again,

I noticed that "jira ls" doesn't have options for status.

It would be very helpful if "jira ls" had options that would allow me to list statuses of issues that I either want to see or do not want to see in the output.

Is this something you would consider adding?

Thanks for your time. :-)

@coryb
Copy link
Contributor

coryb commented Jul 19, 2017

So you are looking for something like jira ls --status done? Or are you asking to see a Status column in the output? You can probably also implement this on your own via a custom template which you can read more about here: https://github.com/Netflix-Skunkworks/go-jira#templates

@williamh
Copy link
Author

I figured out how to control the output; I am looking to query issues based on status, so a couple of options possibly:

jira ls --status 'to do' --status 'in progress ...

to list issues that have those statuses, or

jira ls --exclude-status 'to do' --exclude-status 'in progress ...

to list issues that do not have those statuses.

@coryb
Copy link
Contributor

coryb commented Jul 19, 2017

Fwiw, you can also modify the jql directly via the --query option. This will include status:

jira ls --query "resolution = unresolved AND project = '<project>' AND status = 'To Do'" 

This will exclude status:

jira ls --query "resolution = unresolved AND project = '<project>' AND status not in ('To Do', 'In Progress')"

@coryb
Copy link
Contributor

coryb commented Sep 13, 2017

I have added the --status option, for more complex cases like the AND status != "To Do" and for querying on multiple statuses, I think it is probably more appropriate to just have a stored query for this, so for more complicated stuff I am planning on adding something like #99.

@coryb coryb closed this as completed Sep 13, 2017
@coryb
Copy link
Contributor

coryb commented Sep 13, 2017

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

No branches or pull requests

2 participants