title: Create Issue with Jira
body: <p>Im making an application where users can post issues and more. I am able to post an issue via Postman using basic auth and posting this raw application/json</p>
  <p><strong>UPDATE</strong>
  I have made progress, with this method i get through the basic auth is invalid error. But... I still have a 400 Bad request error. The code now is:</p>
  <pre><code>public async Task&lt;string&gt; PostIssueAsync(string username, string password)
      {
          string data = @&quot;{
                  'fields': {
                     'project':
                     {
                          'key': 'TEST'
                     },
                     'summary': 'zfasf',
                     'description': 'Creating an issue while setting custom field values via projhect ',
                     'issuetype': {
                          'name': 'Fault'
                     }
                          }
                      }&quot;;
  
          HttpClient client = new HttpClient();
  
          client.BaseAddress = new System.Uri(Constants.JiraUrl + &quot;rest/api/latest/issue&quot;);
          var cred = GetEncodedCredentials(username, password);
  
          client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(&quot;Basic&quot;, cred);
  
          client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(&quot;application/json&quot;));
  
          var content = new StringContent(data, Encoding.UTF8, &quot;application/json&quot;);
          content.Headers.ContentType = new MediaTypeHeaderValue(&quot;application/json&quot;);
  
          var response = client.PostAsync(client.BaseAddress, content).Result;
  
          if (response.IsSuccessStatusCode)
          {
          }
          else
          {
              var test = response.Content.ReadAsStringAsync().Result;
          }
          return &quot;&quot;;
      }
  </code></pre>
  <p><strong>The error:</strong>
  In the else statement I use the ReadAsStringAsync to see the error. The error is: &quot;{&quot;errorMessages&quot;:[&quot;Unexpected character (''' (code 39)): was expecting double-quote to start field name\n at [Source: org.apache.catalina.connector.CoyoteInputStream@ae77320; line: 2, column: 7]&quot;]}&quot;</p>
  <p>I think it goes wrong in the data file. I'll update when i get further.</p>