Rest API with Exclamation in description gets escaped

XMLWordPrintable

    • 2
    • Severity 3 - Minor

      Summary

      When creating issues through REST API, if the description field contains an exclamation character the character gets escaped on Jira. This causes the editor to fail to renderr properly

      How to reproduce

      1. Make a rest api call for create issue with the body below.
        
        POST Command: https://site.atlassian.net/rest/api/3/issue/
        
        {
        	"fields": 
        	{
        		"project": 
        		{
        			"id": "10001"
        		},
        		"issuetype": 
        		{
        			"id": "10001"
        		},
        		"summary": "Testisng",
        		"description": 
        		{
        			"type": "doc",
        			"version": 1,
        			"content": [
        			{
        				"type": "paragraph",
        				"content": [
        				{
        					"type": "text",
        					"text": "Testing"
        				}
        				]
        			},
        			{
        				"type": "paragraph",
        				"content": [
        				{
        					"type": "text",
        					"text": "!Testing!"
        				}
        				]
        			}
        			]
        		}
        	}
        }

      Expected behavior

      An issue should be created with the description below

      !Testing!

      Actual results

      Issue is created with the description showing the exclamation character escaped

      \!Testing\!

      Workaround

      Currently none

              Assignee:
              wei (Inactive)
              Reporter:
              Shakiru Ayanloye (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: