<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:11:15 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 add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[FOLIO-1157] /users?limit=0 returns &quot;totalRecords&quot;: 0</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-1157</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;Would it be possible to make it so that if you set limit=0, the query is still executed and sets totalRecords to the number of records that matches the filter criteria (if present)?&lt;/p&gt;

&lt;p&gt;I found that if I execute&lt;/p&gt;

&lt;p&gt;/users?limit=0&lt;/p&gt;

&lt;p&gt;it returns&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
  &quot;users&quot;: [],&lt;br/&gt;
  &quot;totalRecords&quot;: 0,&lt;br/&gt;
  &quot;resultInfo&quot;: &lt;/p&gt;
{
    &quot;totalRecords&quot;: 0,
    &quot;facets&quot;: [],
    &quot;diagnostics&quot;: []
  }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;If I set limit=1, it will return the first user as expected and the totalRecords value is set to the number of matching records (not the limit value). I.e. if there are 208 matching records, it will return 208 not, 1. This is exactly what I want. It just doesn&apos;t work if limit is 0.&lt;/p&gt;

&lt;p&gt;It would be nice to have this functionality so that you could get counts without having to return any user data.&lt;/p&gt;

&lt;p&gt;I haven&apos;t yet tried the other APIs to see if the behavior is the same, but, it it would be good if it worked across all the APIs.&lt;/p&gt;</description>
                <environment></environment>
        <key id="80558">FOLIO-1157</key>
            <summary>/users?limit=0 returns &quot;totalRecords&quot;: 0</summary>
                <type id="10001" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium">Bug</type>
                                            <priority id="10002" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p3.svg">P3</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/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="green"/>
                                    <resolution id="10001">Duplicate</resolution>
                                                        <assignee accountid="-1">Unassigned</assignee>
                                                                <reporter accountid="557058:c2706f9e-f281-4999-8937-b5c5a8ff211f">Jon Miller</reporter>
                                    <labels>
                    </labels>
                <created>Wed, 21 Mar 2018 20:45:02 +0000</created>
                <updated>Mon, 12 Nov 2018 14:24:16 +0000</updated>
                            <resolved>Sat, 22 Sep 2018 11:06:10 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                    <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="56795">RMB-96</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzyegn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>