<?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 count the number of ancestors of working item? in Codebeamer</title>
    <link>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1003708#M722</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/934061"&gt;@vjub58&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried this function in a new default Codebeamer project, and I see the same error. This does not appear to be an out-of-the-box function. I am actually seeing similar results when I attempt to use "size(ancestors())".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use "this.parent" to retrieve the first item up in the hierarchy, though you need to write some creative recursion for this to pull up a full list of ancestors. Please review the supported and available functions here: &lt;A href="https://codebeamer.com/cb/wiki/25722#section-Functions" target="_blank" rel="noopener"&gt;https://codebeamer.com/cb/wiki/25722#section-Functions&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2025 18:30:22 GMT</pubDate>
    <dc:creator>tymorrow</dc:creator>
    <dc:date>2025-03-11T18:30:22Z</dc:date>
    <item>
      <title>How to count the number of ancestors of working item?</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1001244#M690</link>
      <description>&lt;P&gt;Hi dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to check, how many ancestors have the working item, using computed field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found some information about function "ancestors()" , but it didn't work in my case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the codeBeamer version 2.1.0.0 (postgresql).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 18:29:08 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1001244#M690</guid>
      <dc:creator>vjub58</dc:creator>
      <dc:date>2025-02-27T18:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of ancestors of working item?</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1003640#M720</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/934061"&gt;@vjub58&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you say the ancestors() function did not work for you, could you explain a bit further. i.e. what are you expecting as a result, and what was ancenstors() giving you when you tried to use it?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 17:28:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1003640#M720</guid>
      <dc:creator>tymorrow</dc:creator>
      <dc:date>2025-03-11T17:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of ancestors of working item?</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1003644#M721</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/823313"&gt;@tymorrow&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm expecting the ancestors() function returns a list of all item's ancestors, and size(ancestors()) returns the size of this list, i.e. the number of ancestors of this item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to use the ancestors() function in computed field, the expression is not evaluated properly and error message (like "ancestors()" is unknown") has been appeared.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 17:40:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1003644#M721</guid>
      <dc:creator>vjub58</dc:creator>
      <dc:date>2025-03-11T17:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of ancestors of working item?</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1003708#M722</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/934061"&gt;@vjub58&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried this function in a new default Codebeamer project, and I see the same error. This does not appear to be an out-of-the-box function. I am actually seeing similar results when I attempt to use "size(ancestors())".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use "this.parent" to retrieve the first item up in the hierarchy, though you need to write some creative recursion for this to pull up a full list of ancestors. Please review the supported and available functions here: &lt;A href="https://codebeamer.com/cb/wiki/25722#section-Functions" target="_blank" rel="noopener"&gt;https://codebeamer.com/cb/wiki/25722#section-Functions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 18:30:22 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1003708#M722</guid>
      <dc:creator>tymorrow</dc:creator>
      <dc:date>2025-03-11T18:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of ancestors of working item?</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1005113#M749</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/934061"&gt;@vjub58&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to see if you got the help you needed.&lt;/P&gt;
&lt;P&gt;If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.&lt;BR /&gt;Of course, if you have more to share on your issue, please pursue the conversation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Anurag&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 17:06:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1005113#M749</guid>
      <dc:creator>anursingh</dc:creator>
      <dc:date>2025-03-18T17:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of ancestors of working item?</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1005125#M750</link>
      <description>&lt;P&gt;Hi Anurag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unfortunately we couldn't yet find the right solution here by the moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to still wait for the answers from other members.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your attention to the topic,&lt;/P&gt;&lt;P&gt;Valeriy&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 18:01:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/How-to-count-the-number-of-ancestors-of-working-item/m-p/1005125#M750</guid>
      <dc:creator>vjub58</dc:creator>
      <dc:date>2025-03-18T18:01:39Z</dc:date>
    </item>
  </channel>
</rss>

