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

edit --label (--no-input) isn't working #743

Open
bwinsl0w opened this issue May 30, 2024 · 1 comment
Open

edit --label (--no-input) isn't working #743

bwinsl0w opened this issue May 30, 2024 · 1 comment

Comments

@bwinsl0w
Copy link

Describe the bug
when i issue the following command;
jira issue edit --label gpe gpe-79
or
jira issue edit --label gpe gpe-79 --no-label
i get the following error;
Error:

  • labels: Field 'labels' cannot be set. It is not on the appropriate screen, or unknown.

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

Please provide following details

  1. JiraCLI Version:

(Version="1.5.1", GitCommit="0e0f82d52ef5a775d2cc662fbe38d9732b9b5c59", CommitDate="2024-01-20T10:48:06+00:00", GoVersion="go1.21.5", Compiler="gc", Platform="linux/amd64")

```
  1. Are you using Jira cloud or on-premise jira server?
    jira  cloud
    
  2. What operating system are you using? Also mention version.
    ubuntu 22.04 and bash 5.1.16(1)-release (x86_64-pc-linux-gnu)
    
  3. What terminal are you using? Also mention version.
    tilix 1.9.4-2build1
    

To Reproduce

Steps to reproduce the behavior:

  1. jira issue edit -l gpe gpe-79 --no-input
  2. jira issue edit --label gpe gpe-79
  3. Error:
  • labels: Field 'labels' cannot be set. It is not on the appropriate screen, or unknown.

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

Expected behavior
i expect to add a label called gpe automatically or interactively

Screenshots
image

Additional context
this use to work, but for some reason it's not now.

@ankitpokhrel
Copy link
Owner

This seems to be working fine for me.

The error labels: Field 'labels' cannot be set. It is not on the appropriate screen, or unknown. basically means your workflow doesn't allow updating label on the edit screen and this is a configuration issue.

@bwinsl0w are you able to change labels from the UI using the edit screen?

  • if no, then its a configuration issue in Jira
  • If yes, then are you using the SAME account in the browser and in the script?

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