<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get last test results on test case . in Codebeamer</title>
    <link>https://community.ptc.com/t5/Codebeamer/How-to-get-last-test-results-on-test-case/m-p/1051161#M1097</link>
    <description>&lt;P&gt;The only disadvantage of this solution is it does not update itself automatically, I mean after a new testrun, one has to either update the item or reconfigure the computation.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jan 2026 08:39:15 GMT</pubDate>
    <dc:creator>AM_12699209</dc:creator>
    <dc:date>2026-01-16T08:39:15Z</dc:date>
    <item>
      <title>How to get last test results on test case .</title>
      <link>https://community.ptc.com/t5/Codebeamer/How-to-get-last-test-results-on-test-case/m-p/948685#M142</link>
      <description>How can we get last test results in test case via api or compute fields？</description>
      <pubDate>Thu, 09 May 2024 15:00:10 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Codebeamer/How-to-get-last-test-results-on-test-case/m-p/948685#M142</guid>
      <dc:creator>YW_10142311</dc:creator>
      <dc:date>2024-05-09T15:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get last test results on test case .</title>
      <link>https://community.ptc.com/t5/Codebeamer/How-to-get-last-test-results-on-test-case/m-p/948821#M145</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/519690"&gt;@YW_10142311&lt;/a&gt; , I assume this is related to a Test Run. If so, to which part do you refer, is it the below?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfonso_c_1-1715323236415.png" style="width: 871px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/103963i20ACE545645F54C1/image-dimensions/871x586?v=v2" width="871" height="586" role="button" title="alfonso_c_1-1715323236415.png" alt="alfonso_c_1-1715323236415.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 06:42:14 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Codebeamer/How-to-get-last-test-results-on-test-case/m-p/948821#M145</guid>
      <dc:creator>alfonso_c</dc:creator>
      <dc:date>2024-05-10T06:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get last test results on test case .</title>
      <link>https://community.ptc.com/t5/Codebeamer/How-to-get-last-test-results-on-test-case/m-p/949501#M147</link>
      <description>&lt;P&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/519690"&gt;@YW_10142311&lt;/a&gt;, you gave "Kudos" to my previous question, so I assume you are indeed interested in getting that field with REST API or computation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the &lt;STRONG&gt;Test Result of a Test Case's Test Run&lt;/STRONG&gt;, you can chain 2 REST API calls:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Assuming the Main Test Run has ID &lt;STRONG&gt;2094&lt;/STRONG&gt; as in my screenshot above, get its child items with GET /v3/items/&lt;STRONG&gt;2094&lt;/STRONG&gt;/children:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "page": 1,
  "pageSize": 25,
  "total": 1,
  "itemRefs": [
    {
      "id": 2095,
      "name": "Run of tc1",
      "type": "TrackerItemReference"
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Once you have the child item ID (&lt;STRONG&gt;2095&lt;/STRONG&gt;), you can query its fields with GET /v3/items/&lt;STRONG&gt;2095&lt;/STRONG&gt;/fields, the JSON will contain a part about the result:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    {
      "fieldId": 15,
      "name": "Result",
      "values": [
        {
          "id": 1,
          "name": "Passed",
          "type": "ChoiceOptionReference"
        }
      ],
      "sharedFieldNames": [],
      "type": "ChoiceFieldValue"
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With computation, you can e.g. add a custom Text field with the&amp;nbsp;&lt;STRONG&gt;resolutions[0].name&lt;/STRONG&gt; formula:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfonso_c_1-1715667167091.png" style="width: 680px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/104220iE632EB9D610409F6/image-dimensions/680x542?v=v2" width="680" height="542" role="button" title="alfonso_c_1-1715667167091.png" alt="alfonso_c_1-1715667167091.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfonso_c_0-1715667127011.png" style="width: 684px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/104219iD7799FABC3C1B517/image-dimensions/684x207?v=v2" width="684" height="207" role="button" title="alfonso_c_0-1715667127011.png" alt="alfonso_c_0-1715667127011.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this help you?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 06:13:09 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Codebeamer/How-to-get-last-test-results-on-test-case/m-p/949501#M147</guid>
      <dc:creator>alfonso_c</dc:creator>
      <dc:date>2024-05-14T06:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get last test results on test case .</title>
      <link>https://community.ptc.com/t5/Codebeamer/How-to-get-last-test-results-on-test-case/m-p/949754#M149</link>
      <description>&lt;P&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/628059"&gt;@alfonso_c&lt;/a&gt;&amp;nbsp;Thank you so much.&lt;/P&gt;&lt;P&gt;This is very helpful. We want show the Last Run Result in Test Case Tracker ,&amp;nbsp;Due to your inspiration we add a&amp;nbsp;&lt;SPAN&gt;custom Text field with&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;first(1,downstreamReferences(this).trackerTypes("testrun").{item| item.resolutions[0].name})&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;formula and it works!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="juwang_0-1715752531454.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/104294i99BBF810242FB8CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="juwang_0-1715752531454.png" alt="juwang_0-1715752531454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 05:59:33 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Codebeamer/How-to-get-last-test-results-on-test-case/m-p/949754#M149</guid>
      <dc:creator>juwang</dc:creator>
      <dc:date>2024-05-15T05:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get last test results on test case .</title>
      <link>https://community.ptc.com/t5/Codebeamer/How-to-get-last-test-results-on-test-case/m-p/1051161#M1097</link>
      <description>&lt;P&gt;The only disadvantage of this solution is it does not update itself automatically, I mean after a new testrun, one has to either update the item or reconfigure the computation.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 08:39:15 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Codebeamer/How-to-get-last-test-results-on-test-case/m-p/1051161#M1097</guid>
      <dc:creator>AM_12699209</dc:creator>
      <dc:date>2026-01-16T08:39:15Z</dc:date>
    </item>
  </channel>
</rss>

