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

Priority should be a selection of options #660

Open
Abdillah opened this issue Aug 30, 2023 · 0 comments
Open

Priority should be a selection of options #660

Abdillah opened this issue Aug 30, 2023 · 0 comments

Comments

@Abdillah
Copy link

Describe the bug

Priority in JIRA is configured as some enum or option. But, in the prompt it is served as free type input not a selection.
This led to an error below, because I type only some part of the Priority string ("P1 - bla bla bla", only typed P1).

? Priority P1
? What's next? Submit

Error:
  - priority: Specify the Priority (name) in the string format

jira: Received unexpected response '400 Bad Request'.
Please check the parameters you supplied and try again.

Please provide following details

  1. JiraCLI Version:
    $ jira version
    (Version="1.4.0", GitCommit="v1.4.0", CommitDate="1970-01-01T00:00:00+00:00", GoVersion="go1.20.7", Compiler="gc", Platform="linux/amd64")
    
  2. Are you using Jira cloud or on-premise jira server?
    SERVER INFO
    -----------
    
    Version:         1001.0.0-SNAPSHOT
    Build Number:    100235
    Deployment Type: Cloud
    Default Locale:  en_US
    
  3. What operating system are you using? Also mention version.
    NixOS 23.05
    
  4. What terminal are you using? Also mention version.
    WezTerm v20230408-112425-69ae8472
    

To Reproduce

Steps to reproduce the behavior:

  1. Initiate issue creation interactively, jira issues create
  2. Fill in the forms until prompted with { Submit, Add Metadata, Cancel }
  3. Select "Add Metadata" and choose Priority.
  4. Fill priority with different string from your JIRA priority list.
  5. Continue to Submit.
  6. See error.

Expected behavior

Number 4 should be "Select priority" not "Fill priority".

Screenshots

Additional context

I created #659 inspired by this experience.

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

1 participant