<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:17 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-828] Support for selecting array elements in return specifier (projection)</title>
                <link>https://jira.mongodb.org/browse/SERVER-828</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;useful when querying on an embedded array and only wanting the matching element returned.&lt;/p&gt;

&lt;p&gt;leaving to eliot to decide version&lt;/p&gt;</description>
                <environment></environment>
        <key id="11615">SERVER-828</key>
            <summary>Support for selecting array elements in return specifier (projection)</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="benjamin.becker">Ben Becker</assignee>
                                    <reporter username="mike">Michael Dirolf</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Mar 2010 10:54:58 +0000</created>
                <updated>Thu, 6 Apr 2023 15:39:06 +0000</updated>
                            <resolved>Fri, 15 Jun 2012 14:44:47 +0000</resolved>
                                                    <fixVersion>2.1.2</fixVersion>
                                                        <votes>172</votes>
                                    <watches>151</watches>
                                                                                                                <comments>
                            <comment id="3462725" author="JIRAUSER1257388" created="Mon, 26 Oct 2020 07:56:16 +0000"  >&lt;p&gt;@Joseff Betancourt&lt;/p&gt;

&lt;p&gt;&#160;Hello ,&#160;&lt;/p&gt;

&lt;p&gt;Have you able to find a solution to return all the matches element ?&lt;/p&gt;</comment>
                            <comment id="300939" author="alice@gothcandy.com" created="Thu, 28 Mar 2013 17:45:48 +0000"  >&lt;p&gt;The implemented solution is not the solution to this ticket.  The user expectation here was of, in effect, handling the child array as a collection, returning multiple filtered results from that &quot;child collection&quot;.  The implemented solution works for the translation use case, but not for the use case of returning a document whose child array contains only active-flagged sub-documents.  (My use case.)&lt;/p&gt;</comment>
                            <comment id="252220" author="crabdude" created="Mon, 28 Jan 2013 22:18:40 +0000"  >&lt;p&gt;Sorry if this is not an appropriate place for comment, but the description for the issue and the implemented solution seem to be a mismatch. I think what most people are hoping for is something like the $elemMatch projection, but for &lt;b&gt;all&lt;/b&gt; matching array elements, not just the first. The reason it seems confusing and inconsistent probably has something to do with the $elemMatch selector returning multiple documents that match, whereas the projection returns only 1 element that matches.&lt;/p&gt;

&lt;p&gt;Confusion aside, is there any plan or existing issues that could be linked to to allow projections for array subsets?&lt;/p&gt;</comment>
                            <comment id="177376" author="joseffb" created="Fri, 19 Oct 2012 22:46:03 +0000"  >&lt;p&gt;$elemMatch only works on first match... what if I wanted all matches in the area field of following example. Should there be an option for pull all results?&lt;/p&gt;

&lt;p&gt; _id: ObjectId(),&lt;br/&gt;
 someField: &quot;Value&quot;,&lt;br/&gt;
 0: [&lt;/p&gt;
              { city: &quot;Manhattan&quot;, area: &quot;New York City&quot; } 
&lt;p&gt;],&lt;br/&gt;
 1: [&lt;br/&gt;
              &lt;/p&gt;
{ city: &quot;Bronx&quot;, area: &quot;New York City&quot; }
&lt;p&gt;,&lt;br/&gt;
] &lt;br/&gt;
2: [&lt;/p&gt;

             { city: &quot;Boston&quot;, area: &quot;New England&quot; }
&lt;p&gt;] &lt;br/&gt;
3: [&lt;/p&gt;

              { city: &quot;Providence&quot;, area: &quot;New England&quot; }
&lt;p&gt;]&lt;br/&gt;
 4: [&lt;/p&gt;

              { city: &quot;Newton&quot;, area: &quot;New England&quot; }
&lt;p&gt;             ]&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="159248" author="scotthernandez" created="Fri, 31 Aug 2012 12:58:42 +0000"  >&lt;p&gt;Docs for $elemMatch (projection) are here:&lt;br/&gt;
&lt;a href=&quot;http://docs.mongodb.org/manual/reference/projection/elemMatch/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/projection/elemMatch/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="148684" author="auto" created="Mon, 30 Jul 2012 15:06:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-27T20:11:08-07:00&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;}
&lt;p&gt;Message: More tests for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-828&quot; title=&quot;Support for selecting array elements in return specifier (projection)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-828&quot;&gt;&lt;del&gt;SERVER-828&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2238&quot; title=&quot;New projection operator $elemMatch&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2238&quot;&gt;&lt;del&gt;SERVER-2238&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/83ec59844bdd629b2b32a9791a4e7a0e93516c02&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/83ec59844bdd629b2b32a9791a4e7a0e93516c02&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="133525" author="auto" created="Fri, 15 Jun 2012 23:04:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-06-15T15:04:27-07:00&apos;, u&apos;email&apos;: u&apos;ben.becker@10gen.com&apos;, u&apos;name&apos;: u&apos;Ben Becker&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-828&quot; title=&quot;Support for selecting array elements in return specifier (projection)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-828&quot;&gt;&lt;del&gt;SERVER-828&lt;/del&gt;&lt;/a&gt;: additional test and cleanup&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/372ef0946ff5dae940ebc518c85bdbd6338535cf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/372ef0946ff5dae940ebc518c85bdbd6338535cf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="133524" author="auto" created="Fri, 15 Jun 2012 23:03:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-06-15T15:04:27-07:00&apos;, u&apos;email&apos;: u&apos;ben.becker@10gen.com&apos;, u&apos;name&apos;: u&apos;Ben Becker&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-828&quot; title=&quot;Support for selecting array elements in return specifier (projection)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-828&quot;&gt;&lt;del&gt;SERVER-828&lt;/del&gt;&lt;/a&gt;: additional test and cleanup&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/372ef0946ff5dae940ebc518c85bdbd6338535cf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/372ef0946ff5dae940ebc518c85bdbd6338535cf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="133523" author="auto" created="Fri, 15 Jun 2012 23:03:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-06-15T15:04:27-07:00&apos;, u&apos;email&apos;: u&apos;ben.becker@10gen.com&apos;, u&apos;name&apos;: u&apos;Ben Becker&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-828&quot; title=&quot;Support for selecting array elements in return specifier (projection)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-828&quot;&gt;&lt;del&gt;SERVER-828&lt;/del&gt;&lt;/a&gt;: additional test and cleanup&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/372ef0946ff5dae940ebc518c85bdbd6338535cf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/372ef0946ff5dae940ebc518c85bdbd6338535cf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="133513" author="auto" created="Fri, 15 Jun 2012 22:33:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-06-15T15:04:27-07:00&apos;, u&apos;email&apos;: u&apos;ben.becker@10gen.com&apos;, u&apos;name&apos;: u&apos;Ben Becker&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-828&quot; title=&quot;Support for selecting array elements in return specifier (projection)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-828&quot;&gt;&lt;del&gt;SERVER-828&lt;/del&gt;&lt;/a&gt;: additional test and cleanup&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/372ef0946ff5dae940ebc518c85bdbd6338535cf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/372ef0946ff5dae940ebc518c85bdbd6338535cf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="133398" author="auto" created="Fri, 15 Jun 2012 17:47:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-06-15T10:47:32-07:00&apos;, u&apos;email&apos;: u&apos;ben.becker@10gen.com&apos;, u&apos;name&apos;: u&apos;Ben Becker&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-828&quot; title=&quot;Support for selecting array elements in return specifier (projection)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-828&quot;&gt;&lt;del&gt;SERVER-828&lt;/del&gt;&lt;/a&gt;: updated tests for sharding&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/51222ca1bb0a7464bfe2039545e9e91b8f6e6c81&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/51222ca1bb0a7464bfe2039545e9e91b8f6e6c81&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="133302" author="benjamin.becker" created="Fri, 15 Jun 2012 14:52:46 +0000"  >&lt;p&gt;Note that &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-831&quot; title=&quot;Positional Operator Matching Nested Arrays&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-831&quot;&gt;&lt;del&gt;SERVER-831&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1243&quot; title=&quot;New operator to update all matching items in an array&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1243&quot;&gt;&lt;del&gt;SERVER-1243&lt;/del&gt;&lt;/a&gt; are required for multiple arrays in the query specifier and multiple positional ($) operators in the projection specifier.&lt;/p&gt;</comment>
                            <comment id="133297" author="benjamin.becker" created="Fri, 15 Jun 2012 14:44:47 +0000"  >&lt;p&gt;Pushed while JIRA/aws was down:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fb66c84bc7bc1ece63a65766bfea2f797f3b7121&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fb66c84bc7bc1ece63a65766bfea2f797f3b7121&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="90735" author="colinmollenhour" created="Wed, 22 Feb 2012 06:40:29 +0000"  >&lt;p&gt;@free, I&apos;m fully aware that MongoDb is schema-free, I&apos;m not sure what you&apos;re trying to say..&lt;/p&gt;

&lt;p&gt;The JIRA is not a support forum so please continue discussion on the google group if needed, but here is the answer to your question:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.foo.aggregate(&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  {$match:   {&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;task.status&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;: 1}},                    &lt;/span&gt;&lt;span style=&quot;color: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;// filter parent documents&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  {$unwind:  &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;$task&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;},                               &lt;/span&gt;&lt;span style=&quot;color: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;// unwind the embedded docs for filtering&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  {$match:   {&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;task.status&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;: 1}},                    &lt;/span&gt;&lt;span style=&quot;color: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;// filter subdocs&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  {$group:   {_id: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;$_id&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;, task: {$push: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;$task&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}}   &lt;/span&gt;&lt;span style=&quot;color: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;// group subdocs back into array in parent doc&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Note that while the first $match is not necessary it will improve performance if either task.status is indexed or it is common that the set of documents that match will be smaller that the full set. See docs for explanation.&lt;/p&gt;

&lt;p&gt;I could be wrong, but the second match will not use an index although this could possibly be optimized later. Chris?&lt;/p&gt;</comment>
                            <comment id="90729" author="axlfu" created="Wed, 22 Feb 2012 05:08:34 +0000"  >&lt;p&gt;@Colin Mollenhour &lt;br/&gt;
Given such docs&lt;br/&gt;
{_id:1,a:1,b:2,c:3,task:[&lt;/p&gt;
{status:1}
&lt;p&gt;,&lt;/p&gt;
{status:2}
&lt;p&gt;]}&lt;br/&gt;
{_id:1,a1:1,b1:2,xy:3,task:[&lt;/p&gt;
{status:1}
&lt;p&gt;,&lt;/p&gt;
{status:2}
&lt;p&gt;]}&lt;br/&gt;
{_id:1,a2:1,b2:2,mn:3,task:[&lt;/p&gt;
{status:1}
&lt;p&gt;,&lt;/p&gt;
{status:2}
&lt;p&gt;]}&lt;br/&gt;
If my wanting is to find all docs whose task.status=1,return doc and qualified subdoc,&lt;br/&gt;
how to write aggregate command?&lt;/p&gt;

&lt;p&gt;It&apos;s scheme-free mongodb,not mysql&lt;/p&gt;</comment>
                            <comment id="90630" author="colinmollenhour" created="Tue, 21 Feb 2012 22:36:24 +0000"  >&lt;p&gt;@free&lt;br/&gt;
The parent doc field &lt;b&gt;is&lt;/b&gt; _id. Not sure what you&apos;re wanting, but that&apos;s the beauty of using the aggregate command, you can shape the results however you want.&lt;/p&gt;

&lt;p&gt;Regarding performance I haven&apos;t done any large tests, but my basic test took 0ms (used shell to run command then profiler to get time in ms) so at least the overhead isn&apos;t high. I&apos;m sure the aggregation framework will only continue to get faster as well.&lt;/p&gt;

&lt;p&gt;The primary concern to consider when using the aggregation framework is the size limit of the returned document (technically the results must fit in one document which is currently 16mb limit). However as long as your queries are sane I don&apos;t think this will be a problem.&lt;/p&gt;

&lt;p&gt;Here is a working test script (requires 2.1.0): &lt;a href=&quot;https://gist.github.com/1879457&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/1879457&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="89340" author="axlfu" created="Fri, 17 Feb 2012 08:29:00 +0000"  >&lt;p&gt;@Colin Mollenhour &lt;br/&gt;
Your aggregate&apos;s result has no parent doc field ,just has _id and embedded docs.&lt;br/&gt;
And the performance maybe not good enough.&lt;/p&gt;</comment>
                            <comment id="88361" author="colinmollenhour" created="Tue, 14 Feb 2012 20:27:14 +0000"  >&lt;p&gt;There are some caveats with this feature request. Some examples:&lt;/p&gt;

&lt;p&gt;If you want to filter the documents with one criteria (say &quot;status&quot;) and the embedded documents by another (say &quot;comments.timestamp&quot;) you run into the situation where maybe a document doesn&apos;t have any embedded documents that match but you still want the parent document in the results.&lt;/p&gt;

&lt;p&gt;Another is if you want to exclude certain fields like &quot;changelog&quot; but use the positional operator to include only matched embedded docs. Currently mixing includes and excludes is prohibited so you&apos;d have to convert your excludes to includes on the application side.&lt;/p&gt;

&lt;p&gt;Thankfully, we have the aggregation framework now (2.1) which would let you filter parent documents independently of embedded documents and also use include/exclude on the parent document fields while still returning only matched embedded documents. The output can be made to match exactly what this feature request is asking for with far greater flexibility.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.foo.aggregate(&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  {$match:   {status: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;published&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}},                        &lt;/span&gt;&lt;span style=&quot;color: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;// filter parent documents&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  {$project: {changelog: 0}},                               &lt;/span&gt;&lt;span style=&quot;color: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;// exclude fields from parent&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  {$unwind:  &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;$comments&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;},                                  &lt;/span&gt;&lt;span style=&quot;color: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;// unwind the embedded docs for filtering&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  {$match:   {$or:[{comments:{$exists:&lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}},              &lt;/span&gt;&lt;span style=&quot;color: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;// match documents with no comments&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    {&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;comments.timestamp&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;: {$gte: lastWeek}}]},             &lt;/span&gt;&lt;span style=&quot;color: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;// filter comments&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  {$group:   {_id: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;$_id&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;, comments: {$push: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;$comments&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}}  &lt;/span&gt;&lt;span style=&quot;color: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;// group comments back into parent doc&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;So is this feature request now obsolete?&lt;/p&gt;</comment>
                            <comment id="77710" author="mentel" created="Thu, 5 Jan 2012 02:37:28 +0000"  >&lt;p&gt;Would be nice for my use case: multilanguage documents.&lt;br/&gt;
Support for $in would be even better, for fallback support to the default language.&lt;/p&gt;</comment>
                            <comment id="56615" author="flaper87" created="Mon, 26 Sep 2011 13:46:15 +0000"  >&lt;p&gt;@alex&lt;/p&gt;

&lt;p&gt;That&apos;s something you&apos;ll have to be aware of. If you have a collection that has documents with such arrays you&apos;ll have to be careful when retrieving those fields. AFAIT &lt;/p&gt;</comment>
                            <comment id="40369" author="nowaalex" created="Sun, 3 Jul 2011 15:41:47 +0000"  >&lt;p&gt;And how about perfomance?&lt;br/&gt;
Will the perfomance loss for the find queries be noticeable for large amounts of data( nearly 50 elements in each array and about 100000 arrays )?&lt;/p&gt;</comment>
                            <comment id="37864" author="m@" created="Thu, 16 Jun 2011 14:24:50 +0000"  >&lt;p&gt;This morning, actually, I lazily blogged about this before looking in Jira (which is not linked off the mongodb site that I could find, I had to use Google).&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.matthewgkeller.com/blog/2011/06/16/dear-mongodb/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.matthewgkeller.com/blog/2011/06/16/dear-mongodb/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="37724" author="cwestin" created="Wed, 15 Jun 2011 20:15:03 +0000"  >&lt;p&gt;The use of $unwind in the new aggregation framework will make it possible to be selective about which of several descendant objects are returned.&lt;/p&gt;</comment>
                            <comment id="30430" author="keithbranton" created="Sat, 30 Apr 2011 01:07:28 +0000"  >&lt;p&gt;Also... will this work if I need one document from one array and one from another array - in the same query - or would I have to do two queries?&lt;/p&gt;</comment>
                            <comment id="30429" author="keithbranton" created="Sat, 30 Apr 2011 01:06:13 +0000"  >&lt;p&gt;Will this be able to return several embedded documents if $in is used in the query? Being able to bring back only one is a huge win over current behavior, but being able to bring back all the ones I want (but only the ones I want) in a single query - now that would be cool!&lt;/p&gt;</comment>
                            <comment id="21857" author="chx" created="Tue, 28 Dec 2010 06:53:20 +0000"  >&lt;p&gt;Yes, this would be very useful because sometimes you have quite big arrays (and with the planned 32MB you will have even bigger) and it&apos;s pointless to get all that and convert to a PHP structure.&lt;/p&gt;</comment>
                            <comment id="13915" author="wwwes" created="Wed, 28 Apr 2010 11:34:07 +0000"  >&lt;p&gt;It would be nice if a flag existed for indicating whether the whole matching branch or just the matching elements would be returned. Example of behavior shown at &lt;a href=&quot;http://groups.google.com/group/mongodb-user/browse_thread/thread/a51dcffdea389ef4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-user/browse_thread/thread/a51dcffdea389ef4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="13215" author="mike" created="Sun, 28 Mar 2010 11:28:41 +0000"  >&lt;p&gt;Should think about whether this should just be done w/ virtual collections &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-142&quot; title=&quot;Read-only views over collection data.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-142&quot;&gt;&lt;del&gt;SERVER-142&lt;/del&gt;&lt;/a&gt; - suppose it&apos;s possible that you might want to get a field from the top level document and the embedded document, but there is definitely some overlap in use case between these tickets.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="11619">SERVER-831</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="12164">SERVER-1243</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="47495">DOCS-422</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="95587">SERVER-11347</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17082">SERVER-3094</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="12743">SERVER-1608</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="11774">SERVER-1013</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="57728">SERVER-7785</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="10279">SERVER-142</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13988">SERVER-2238</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="10927">SERVER-447</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17008">SERVER-3089</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>28.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 28 Apr 2010 11:34:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 15 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-831'>SERVER-831</a></s>, <s><a href='https://jira.mongodb.org/browse/SERVER-1243'>SERVER-1243</a></s>]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 15 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>crabdude</customfieldvalue>
            <customfieldvalue>heerahakilesh@gmail.com</customfieldvalue>
            <customfieldvalue>nowaalex</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>benjamin.becker</customfieldvalue>
            <customfieldvalue>cwestin</customfieldvalue>
            <customfieldvalue>colinmollenhour</customfieldvalue>
            <customfieldvalue>alice@gothcandy.com</customfieldvalue>
            <customfieldvalue>flaper87</customfieldvalue>
            <customfieldvalue>axlfu</customfieldvalue>
            <customfieldvalue>joseffb</customfieldvalue>
            <customfieldvalue>chx</customfieldvalue>
            <customfieldvalue>keithbranton</customfieldvalue>
            <customfieldvalue>m@</customfieldvalue>
            <customfieldvalue>mike</customfieldvalue>
            <customfieldvalue>mentel</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>wwwes</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrppun:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrggfb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9573</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hs58d3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>