title: jira rest api error in creating issue
body: <p>hi i am getting following error when trying to create an issue in jira using rest api with php.Error(s) creating issue:
        object(stdClass)[1]
        public 'errorMessages' =>
         array (size=0)
          empty
         public 'errors' =>
          object(stdClass)[2]
        public 'summary' => string 'Field 'summary' cannot be set. It is
            not on the appropriate screen, or unknown.' (length=79)
           public 'description' => string 'Field 'description' cannot be
           set. It is not on the appropriate screen, or unknown.' (length=83)
           `
  i am using the following source code:</p>
  
  <pre><code>&lt;?php
  
   define('JIRA_URL', 'xxxxxxxx');
   define('USERNAME', 'xxxxxxxxx');
   define('PASSWORD', 'xxxxxxxx');
  
   function post_to($resource, $data) {
   $curlname=CURLOPT_POST;
   $curlvalue=1;  
   $jdata = json_encode($data);
   $ch = curl_init();
   curl_setopt_array($ch, array(
      $curlname =&gt; $curlvalue,
      CURLOPT_URL =&gt; JIRA_URL . '/rest/api/latest/' . $resource,
      CURLOPT_USERPWD =&gt; USERNAME . ':' . PASSWORD,
      CURLOPT_POSTFIELDS =&gt; $jdata,
      CURLOPT_HTTPHEADER =&gt; array('Content-type: application/json'),
      CURLOPT_RETURNTRANSFER =&gt; true
   ));
   $result = curl_exec($ch);
   curl_close($ch);
   return json_decode($result);
   }
  
   function create_issue($issue) {
   return post_to('issue', $issue);
   }
  
   $new_issue = array(
   'fields' =&gt; array(
      'project' =&gt; array('key' =&gt; 'xxx'),
      'summary' =&gt; 'Test via REST',
      'description' =&gt; 'Description of issue goes here.',
      'issuetype' =&gt; array('name' =&gt; 'Task')
   )
   );
  
   $result = create_issue($new_issue);
   if (property_exists($result, 'errors')) {
   echo "Error(s) creating issue:\n";
   var_dump($result);
    } else {
   echo "New issue created at " . JIRA_URL ."/browse/{$result-&gt;key}\n";
   }
  
   ?&gt;
  </code></pre>
  
  <p>the fields with xxxx are replaced for security reason.
  i want to know how i can correct this error.</p>