jira-cli icon indicating copy to clipboard operation
jira-cli copied to clipboard

jira sprint list - empty

Open rhysjtevans opened this issue 3 years ago • 2 comments

Describe the bug I am able to list issues, projects boards etc. however sprint does not work. I haven't looked into it yet but doing a debug I can see the follow URI is called with boards '0' which I'm not sure where this comes from?

/rest/agile/1.0/board/0/sprint?state=active,closed&startAt=0&maxResults=50

Also no matter what I do I can't list sprints (even if I change to a different project)

Please provide following details

  1. JiraCLI Version:

Version="1.0.0", GitCommit="e94433858ee31e16d4b41c14032864f3c5361115", CommitDate="2022-06-23T06:35:37+00:00", GoVersion="go1.18.3", Compiler="gc", Platform="linux/amd64") 2. Are you using Jira cloud or on-premise jira server? Also mention the version for on-premise installation. Jira Cloud 3. What operating system are you using? Also mention version. MacOS 11.6 4. What terminal are you using? Also mention version. default macos terminal ```

To Reproduce

Steps to reproduce the behavior:

  1. jira sprint list
  2. ...
  3. See error

Expected behavior List sprints of project

rhysjtevans avatar Aug 08 '22 17:08 rhysjtevans

After some code diving - I've worked around this by hard-coding the configuration but not ideal, would be great if it queried and listed all sprints by default,

i.e.

board:
  id: 23

rhysjtevans avatar Aug 08 '22 17:08 rhysjtevans

Hi @rhysjtevans, it should list all sprints by default. The initialization step fetches all data required for the tool (except for some older versions of jira).

I would assume for some reason the config was not fully generated for your installation. Did you select the board during the jira init process?

ankitpokhrel avatar Aug 08 '22 19:08 ankitpokhrel

Closing due to inactivity. Please feel free to comment or open a new issue if you still need help.

ankitpokhrel avatar Nov 05 '22 13:11 ankitpokhrel