title: How to import test execution results using REST API and XRay for JIRA and Cucumber + Xray
body: <p>I am trying to import test execution results for my project but am having difficulty associating tests with the test execution using the REST API. I have tried to emulate the instructions found at <a href="http://xray.xpand-it.com/display/XRAY/REST+API" rel="nofollow noreferrer">http://xray.xpand-it.com/display/XRAY/REST+API</a> but it does not seem to be working. I can import a test execution without any associated tests.</p>
  <p>Here is my request which I am posting to http:////rest/api/2/issue</p>
  <pre><code>&quot;{&quot;&quot;fields&quot;&quot;: {&quot;&quot;project&quot;&quot;:{&quot;&quot;key&quot;&quot;: &quot;&quot;ET&quot;&quot;}, &quot;&quot;summary&quot;&quot;: &quot;&quot;Test execution&quot;&quot;, &quot;&quot;description&quot;&quot;:&quot;&quot;Description&quot;&quot;, &quot;&quot;issuetype&quot;&quot;:{&quot;&quot;id&quot;&quot;:&quot;&quot;10302&quot;&quot;}, &quot;&quot;tests&quot;&quot;:[{&quot;&quot;testKey&quot;&quot; : &quot;&quot;ET-879&quot;&quot;,&quot;&quot;comment&quot;&quot; : &quot;&quot;Successful execution&quot;&quot;,&quot;&quot;status&quot;&quot; : &quot;&quot;PASS&quot;&quot;},{&quot;&quot;testKey&quot;&quot; : &quot;&quot;ET-880&quot;&quot;,&quot;&quot;comment&quot;&quot; : &quot;&quot;Execution failed&quot;&quot;,&quot;&quot;status&quot;&quot; : &quot;&quot;FAIL&quot;&quot;},{&quot;&quot;testKey&quot;&quot; : &quot;&quot;ET-881&quot;&quot;,&quot;&quot;comment&quot;&quot; : &quot;&quot;Successful execution&quot;&quot;,&quot;&quot;status&quot;&quot; : &quot;&quot;PASS&quot;&quot;}]}}&quot;
  </code></pre>
  <p>The &quot;tests&quot; field is not recognised, but I can't find the appropriate replacement to get this to work.</p>
  <p>Any help you can give would be appreciated.</p>