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

View issues with ls returns no issue when in reality api returned an error #35

Open
japamat opened this issue Oct 7, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@japamat
Copy link

japamat commented Oct 7, 2020

my organization doesn't have the in review status setup, so when I try and list my issues using jira ls it says no issues.
this is what the response from the api looks like this, with a status of 400:

i tested this inside my browser and got the following error. When i removed the in review status, it worked.

{
  "errorMessages": [
    "The value 'In Review' does not exist for the field 'status'."
  ],
  "warningMessages": []
}

the jql sent over is:
assignee=currentUser() AND status in ("Open", "In Progress", "Reopened", "To Do", "In Review") order by key DESC

I was able to get around this by using a .filter directly inside the ls module on getAvailableStatuses - but I feel like if the api returns an error, something other than "No Issues" should be returned.

@mikhaili mikhaili added the bug Something isn't working label Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants