Skip to content

Jira shows backslashes when adding a comment with specific characters #843

Open
@tlbueno

Description

@tlbueno

Describe the bug
when adding a comment which contains dash, paranteses or underscore, it is displayed with a backslash before it in jira

Please provide following details

  1. JiraCLI Version:
(Version="1.6.0", GitCommit="Homebrew", CommitDate="2025-04-19T09:33:11+00:00", GoVersion="go1.24.2", Compiler="gc", Platform="linux/amd64")
  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.
Linux Fedora 42
  1. What terminal are you using? Also mention version.
terminator - terminator-2.1.4-4.fc42.1.noarch

To Reproduce

Steps to reproduce the behavior:

  1. Add a comment as below into a file name test.tmpl
This is a problematic comment:
{code:bash}
echo "my test - - - _ _ _ ( ( ( ) ) )"
{code}
  1. Execute the command:
jira issue comment add MY-ISSUE-123 --template ./test.tmpl --no-input

Expected behavior
I expect to do not have backslashes in the comment

Screenshots

Additional context

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