<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:20:59 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-9626] Aggregation Framework needs to support more date conversion functions like date portion, or time portion of date type</title>
                <link>https://jira.mongodb.org/browse/SERVER-9626</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;It would be very useful to have additional date conversion operators that would take a Date and return a date that only includes the date portion (time portion would be 0). Likewise for a getting the time of the day without the date.&lt;/p&gt;

&lt;p&gt;Currently it is not possible (or at least not easily done) to group on the date of a Date field and have the date returned to the pipeline.&lt;/p&gt;

&lt;p&gt;This wouldn&apos;t be too difficult to workaround if we could $divide a date, and then group on it, but it&apos;s not supported.&lt;/p&gt;

&lt;p&gt;Other possible conversions may be nice like converting a Date to a Long, etc..&lt;/p&gt;</description>
                <environment></environment>
        <key id="74715">SERVER-9626</key>
            <summary>Aggregation Framework needs to support more date conversion functions like date portion, or time portion of date type</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="3">Duplicate</resolution>
                                        <assignee username="benjamin.murphy">Benjamin Murphy</assignee>
                                    <reporter username="gjroylance">Gordon Roylance</reporter>
                        <labels>
                            <label>expression</label>
                            <label>usability</label>
                    </labels>
                <created>Wed, 8 May 2013 21:28:38 +0000</created>
                <updated>Wed, 3 Jan 2018 21:46:15 +0000</updated>
                            <resolved>Fri, 11 Mar 2016 20:30:28 +0000</resolved>
                                                                    <component>Aggregation Framework</component>
                                        <votes>9</votes>
                                    <watches>17</watches>
                                                                                                                <comments>
                            <comment id="1201123" author="charlie.swanson" created="Fri, 11 Mar 2016 20:30:18 +0000"  >&lt;p&gt;I&apos;m closing this ticket as a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16347&quot; title=&quot;Support for date aggregation operator for creating dates from parts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16347&quot;&gt;&lt;del&gt;SERVER-16347&lt;/del&gt;&lt;/a&gt; since I think they are very similar, and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16347&quot; title=&quot;Support for date aggregation operator for creating dates from parts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16347&quot;&gt;&lt;del&gt;SERVER-16347&lt;/del&gt;&lt;/a&gt; is more specific about the requested functionality. &lt;/p&gt;

&lt;p&gt;If anyone has additional requests besides the functionality described in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16347&quot; title=&quot;Support for date aggregation operator for creating dates from parts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16347&quot;&gt;&lt;del&gt;SERVER-16347&lt;/del&gt;&lt;/a&gt; (including &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=joerek&quot; class=&quot;user-hover&quot; rel=&quot;joerek&quot;&gt;joerek&lt;/a&gt;&apos;s request in the first comment), I would ask that you please file an additional ticket and include specifics about what you are requesting, and some examples. Thank you!&lt;/p&gt;</comment>
                            <comment id="936070" author="petri.liimatta@op.fi" created="Wed, 10 Jun 2015 06:25:10 +0000"  >&lt;p&gt;Enabling Date construction in aggregation would be a good start. Currently it is not possible to execute &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;   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;new ISODate(&quot;$myDateString&quot;)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt; in aggregation. &lt;/p&gt;

&lt;p&gt;This would enable date aggregation operators like $year, $month and $dayOfMonth later in next pipeline steps.&lt;/p&gt;</comment>
                            <comment id="490179" author="asya" created="Wed, 29 Jan 2014 17:25:41 +0000"  >&lt;p&gt;It&apos;s certainly possible to do this in 2.4 using date math, but I agree that it&apos;s unwieldy and slightly ugly so this would be useful syntax to have/use.&lt;/p&gt;</comment>
                            <comment id="334389" author="joerek" created="Mon, 13 May 2013 13:25:37 +0000"  >&lt;p&gt;In addition to this request. It would be useful to add to the date fuctions in the AF a unix timestamp function (milliseconds since 1970). With such an option you can group on any given time interval (for example 86400 seconds, or even per 4 hours: 14400 seconds) etc.. without having to stick with the $year, $dayOfYear functions&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="171691">SERVER-16347</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="93612">SERVER-11118</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="88051">SERVER-10651</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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000UaXl5IAF]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 13 May 2013 13:25:37 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 48 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 48 weeks, 5 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>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>benjamin.murphy</customfieldvalue>
            <customfieldvalue>charlie.swanson@mongodb.com</customfieldvalue>
            <customfieldvalue>gjroylance</customfieldvalue>
            <customfieldvalue>joerek</customfieldvalue>
            <customfieldvalue>petri.liimatta@op.fi</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmttj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6414</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_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|hrixbz:</customfieldvalue>

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