Skip to content

Cannot add component using the Name, only ID work. #861

Open
@marcomayer

Description

@marcomayer

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: adab79f 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions