Skip to content

jira issue comment add command incorrectly escapes hyphens in UUID-like strings #897

@lancy

Description

@lancy

When using the jira issue comment add command to add comments containing UUID-like strings, the command incorrectly escapes hyphens (-) within the UUID, corrupting the UUID format.

  1. JiraCLI Version:
(Version="1.7.0", GitCommit="Homebrew", CommitDate="2025-08-30T08:30:25+00:00", GoVersion="go1.25.0", Compiler="gc", Platform="darwin/arm64")
  1. Are you using Jira cloud or on-premise jira server?
SERVER INFO
-----------

Version:         9.12.22
Build Number:    9120022
Deployment Type: Server
Default Locale:
  1. What operating system are you using? Also mention version.
macOS 15.6.1 (24G90)
  1. What terminal are you using? Also mention version.
iTerm 2 Build 3.5.14

Steps to Reproduce

jira issue comment add XXX-XXX "uuid like aibot:6394e8a9-5671-4474-8e43-d9bb745279bc will be escaped"

Actual Result

The hyphens in the UUID are escaped as:
aibot:6394e8a9\-5671\-4474\-8e43\-d9bb745279bc

Expected Result

The UUID should remain in its original format without escaping:
aibot:6394e8a9-5671-4474-8e43-d9bb745279bc

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