<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Fri Feb 09 00:30:07 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>[UXPROD-3198] Add logic flow to templates for staff slips </title>
                <link>https://folio-org.atlassian.net/browse/UXPROD-3198</link>
                <project id="10000" key="UXPROD">UX Product</project>
                    <description>&lt;p&gt;&lt;b&gt;From RA SIG meeting notes on 7/19:&lt;/b&gt; What would be ideal is if we could make it possible to add flow logic to templates via an extension on Mustache called &lt;a href=&quot;https://handlebarsjs.com/&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;Handlebars&lt;/a&gt;. This feature, along with 
    &lt;span class=&quot;jira-issue-macro&quot; data-jira-key=&quot;UXPROD-3199&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/UXPROD-3199&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;Make all fields available as tokens for staff slip templates &quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10322?size=medium&quot; /&gt;
            UXPROD-3199
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-complete jira-macro-single-issue-export-pdf&quot;&gt;Draft&lt;/span&gt;
            &lt;/span&gt;
, is a longer-term more sustainable path for tokens and templates. For example, instead of adding am &lt;em&gt;effective name&lt;/em&gt; token defined as if preferred name, use that, if no preferred name, use first name. Another example would be if a field value is not empty, then print line with a label and field value; otherwise, leave empty and move to next line. This gives libraries infinitely more flexibility in how they define the text of their templates. It also requires no further development in terms of adding new tokens (
    &lt;span class=&quot;jira-issue-macro&quot; data-jira-key=&quot;UXPROD-3199&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/UXPROD-3199&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;Make all fields available as tokens for staff slip templates &quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10322?size=medium&quot; /&gt;
            UXPROD-3199
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-complete jira-macro-single-issue-export-pdf&quot;&gt;Draft&lt;/span&gt;
            &lt;/span&gt;
) or singularly defined conditional tokens, such as preferred name.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Specific example for what this would like on a template:&lt;/b&gt;&lt;br/&gt;
{{&lt;tt&gt;#if (isdefined user.preferredName)&lt;/tt&gt;}}&lt;br/&gt;
  {{&lt;tt&gt;user.preferredName&lt;/tt&gt;}}&lt;br/&gt;
{{&lt;tt&gt;else&lt;/tt&gt;}}&lt;br/&gt;
  {{&lt;tt&gt;user.firstName&lt;/tt&gt;}}&lt;br/&gt;
{{&lt;tt&gt;/if&lt;/tt&gt;}}&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Questions&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;For developers - are we already using Handlebars for looping? {{&lt;tt&gt;#loans&lt;/tt&gt;}} {{&lt;tt&gt;loan.dueDate&lt;/tt&gt;}} {{&lt;tt&gt;/loans&lt;/tt&gt;}}.&lt;/li&gt;
&lt;/ul&gt;


</description>
                <environment></environment>
        <key id="13243">UXPROD-3198</key>
            <summary>Add logic flow to templates for staff slips </summary>
                <type id="10002" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10322?size=medium">New Feature</type>
                            <parent id="13681">UXPROD-19</parent>
                                    <priority id="10005" iconUrl="https://dev.folio.org/assets/jira-priority/tbd.svg">TBD</priority>
                        <status id="10000" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/generic.png" description="(Migrated on 4 Feb 2024 13:41 UTC)">Draft</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                                        <assignee accountid="712020:92bdafe9-2677-4413-a6f5-a9ef94eea08d">julie.bickle</assignee>
                                                                <reporter accountid="557058:ad89644f-caaa-466a-8bf5-cdcd4358fa9a">Darcy Branchini</reporter>
                                    <labels>
                            <label>staff_slips</label>
                            <label>staff_slips_tokens</label>
                    </labels>
                <created>Thu, 29 Jul 2021 13:26:12 +0000</created>
                <updated>Thu, 23 Feb 2023 08:30:42 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                        <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_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10187"><![CDATA[Vega]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10014" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue key="$xmlutils.escape($text)">Staff Slips</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10063" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>PO Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i034nr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10069" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Rank: Cornell (Full Sum 2021)</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10215"><![CDATA[R3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>