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

Cannot add component using the Name, only ID work.

Open marcomayer opened this issue 9 months ago • 1 comments

Describe the bug When creating a new issue with --component="Component Name" I always get back

Error:
  - components: You do not have permission to create new components. Contact your project admin or Jira admin for assistance.

After inspecting the request and creating a new one manually it seems like this only works for our board when providing Name + ID of the component, or just the ID.

Please provide following details

  1. JiraCLI Version: adab79ff71c7191d467818e50a84874102f4c78f on master
  2. Are you using Jira cloud or on-premise jira server? SERVER INFO

Version: 1001.0.0-SNAPSHOT Build Number: 100283 Deployment Type: Cloud Default Locale: en_US 3. What operating system are you using? Also mention version. Ubuntu 20 4. What terminal are you using? Also mention version. Wezterm

To Reproduce

Steps to reproduce the behavior:

  1. Try adding a new issue with --component="Some Name" fails
  2. See error

Expected behavior Should create the issue.

Additional context This is somewhere between a bug and a feature request I guess. I'd be happy to create a PR that allows --component-id <ID> param which would then use the ID instead of the Name. Not allowing the usage of both to keep things simple.

marcomayer avatar May 30 '25 09:05 marcomayer

I ran into this. Surprisingly, removing the '=' made it work!

fcwoknhenuxdfiyv avatar Sep 05 '25 13:09 fcwoknhenuxdfiyv