Hi,
I encountered an issue while using the `acli jira workitem create` command.
The command fails with an "invalid issue type" error, even though the issue type is listed as allowed.
Command:
acli jira workitem create \
--project "SECP" \
--parent "SECP-3387" \
--type "Sub-task" \
--summary "[TEST] Sub-task creation test" \
--description "test" \
--assignee "@me" \
--json
Error:
The selected issue type is invalid.
- The issue type appears in the allowed issue types list
- The same operation works correctly via Jira REST API
- In some cases, even using a numeric issue type ID does not resolve the problem
Although there are multiple issue types with the same name in the global Jira configuration,
only **one issue type with that name is actually associated with this project**.
In other words, from the project’s perspective, there is no ambiguity.
It seems ACLI may be resolving the issue type at a **global scope** rather than within the **project scope**.
When multiple issue types share the same name globally, this could lead to incorrect resolution,
even though the project itself has only one valid match.
- This situation can occur when:
- Team-managed (next-gen) projects are created or deleted
- Issue types are duplicated across different scopes
- Jira is known to allow duplicate issue type names with different internal IDs
- Resolve issue types strictly within the project scope
- Or prioritize ID-based resolution over name-based matching
- Provide a clearer error message when ambiguity is detected
Is this a known limitation of ACLI, or is this considered a bug?
Thanks.
As you mention:
"Although there are multiple issue types with the same name in the global Jira configuration,
only **one issue type with that name is actually associated with this project**.
In other words, from the project’s perspective, there is no ambiguity."
Naming any item in Jira the same is bad practice.
If you keep this practice, use the ID of the issue type.
That's right point. For example even Manually Backup going crazy when it detect at least one Duplicate.
People shouldn't underestimate that how Databases often Handling duplicates.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @조선호 _ 보안개발팀_NOL_
First try upgrade it to newest version
https://developer.atlassian.com/cloud/acli/guides/update-install-guide/
Now I have feeling your ACLI may be resolving the type too broadly instead of within the project context. Feels little Buggy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.