Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

When using new Jira Issue View, how to avoid extra "\\" being auto added for tags in description?

Katherine Chan March 9, 2021

When using the new Jira issue view to edit the description field, extra "\\" are auto added to the "{{" tags we use for automation.  The only way I can view and update that is switching back to the old view and go in "Edit" mode to remove.  

1. Is there a way to avoid the extra "help" from Jira?

2. Is there a way to edit in non-WYIWYG mode in the new issue view?

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 11, 2021

Hello @Katherine Chan ,

I am not sure I understand correctly the issue you are reporting in here.

From what I read it seems like every time you type a curly bracket in the new issue view the escape character '\' is added before it, or maybe with \\ you refer to an extra new line? Can you please clarify?

I have tried to add a text among curly brackets {{text}} and I cannot see any backslash added there, not even if I get the comment text via REST API:

"body": {
"version": 1,
"type": "doc",
"content": [{
"type": "paragraph",
"content": [{
"type": "text",
"text": "{{test}}"
}]
}]

 

Therefore, would it be possible to provide a list of steps I can follow in order to reproduce this issue on my own Jira site?

A screenshot or an animated gif might be fine too.

 

 

Cheers,
Dario

Katherine Chan March 11, 2021

Screen Shot 2021-03-11 at 2.44.06 PM.pngScreen Shot 2021-03-11 at 2.46.48 PM.png

Katherine Chan March 11, 2021

See attached screenshots.  The first one is description in Edit mode in the Old View that shows "\{\{" in the tags.  However, in the New View for the same section, I can't tell from the WYIWYG editor that the extra "\" was added.  And I can't find how to get to a non-WYIWYG editing mode in the New View.

Before the "\" being added we were making updates in the description field but we only found out afterwards so can't tell which exact update triggered it.

It would be helpful to be able to switch to a non-WYIWYG editing mode in this case in the New View. 

Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 12, 2021

@Katherine Chan ,

Thanks a lot for the screenshots and the further explanation. I now understand that you are trying to check if there is a way to see the issue comments or description in plain text instead of WYIWYG in order to check whether or not the escape character (backslash) is added before curly brackets.

In order to check whether backslashes are added or not to the description on my test instance I have called the below REST API endpoints:

 

Looking at the returned JSON payload, it seems escape characters are not added anymore since we are now using Atlassian Document Format instead of Wiki markdown:

[...]
  "content": [{
         "type": "paragraph",
         "content": [{
             "type": "text",
              "text": "text"
         }]},
   {
        "type": "paragraph",
         "content": [{
               "type": "text",
              "text": "{text in brackets}"
          }]},
 [...]

 

Full JSON payload on pastebin: https://pastebin.com/qVv0r6hN

 

Once this has been said, it is still not clear to me what issue you are trying to solve with the curly brackets having the escape character or not. I understand this is related to automations but I'd like to get more details so that I can further look into this.

 

Cheers,
Dario

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events