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

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

Open bwinsl0w opened this issue 1 year ago • 1 comments

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.

bwinsl0w avatar May 30 '24 19:05 bwinsl0w

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?

ankitpokhrel avatar Jul 27 '24 09:07 ankitpokhrel