Hello!
I'm using the Jira API v2 to create an issue. I'm facing a trouble when I send a string with special caracteres on description filed.
Here the example that is working for me when I send a POST method to rest/api/2/issue:
var dataToCreateAnIssue = "{\"fields\":{\"project\":{\"key\":\"" + key + "\"},\"summary\":\"" + title + "\",\"description\":\"" + descp+ "\",\"issuetype\":{\"name\":\"Bug\"}}}";
But when I have special caracteres like ">" or "<" in my string dataToCreateAnIssue, I got the error 'The remote server returned an error: (400) Bad Request.'
I need to automate it, and my string will always have various special caracteres.
How can I resolve this? Any suggestion?