Difference between revisions of "Template: ComponentRN"

From Genesys Documentation
Jump to: navigation, search
Line 18: Line 18:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=ComponentRN|Highlight=Wikitext|HighlightBoilerplateId=String|Containers=Wikitext|ComponentId=String|ReleaseNumber=String|ReleaseDate=String|PrivateEditionReleaseDate=String|MixedModeReleaseDate=String|ReleaseTypeId=String|JQL=String|DeploymentTypeId=List (,) of String}}
+
{{#cargo_declare:
</noinclude><includeonly>{{#cargo_store:_table=ComponentRN|Highlight={{{Highlight|}}}|HighlightBoilerplateId={{{HighlightBoilerplateId|}}}|Containers={{{Containers|}}}|ComponentId={{{ComponentId|}}}|ReleaseNumber={{#explode:{{FULLPAGENAME}}|/|2}}
+
_table=ComponentRN
|ReleaseDate={{{ReleaseDate|}}}|PrivateEditionReleaseDate={{{PrivateEditionReleaseDate|}}}|MixedModeReleaseDate={{{MixedModeReleaseDate|}}}|ReleaseTypeId={{{ReleaseTypeId|}}}|JQL={{{JQL|}}}|DeploymentTypeId={{{DeploymentTypeId|}}}}}{{#mintydocs_topic:
+
|Highlight=Wikitext
|standalone
+
|HighlightBoilerplateId=List (,) of String
|display name=Base unit of content for {{#cargo_query:tables=Component|fields=Name|where=Id="{{{ComponentId|}}}"|no html}} - {{#explode:{{FULLPAGENAME}}|/|2}}
+
|Containers=Wikitext
 +
|ComponentId=String
 +
|ReleaseNumber=String
 +
|ReleaseDate=String
 +
|PrivateEditionReleaseDate=String
 +
|MixedModeReleaseDate=String
 +
|ReleaseTypeId=String
 +
|JQL=String
 +
|DeploymentTypeId=List (,) of String
 
}}
 
}}
 +
</noinclude><includeonly><!--
 +
 +
setting default form based on Category
 +
 +
-->[[Category:EditRN]]<!--
 +
 +
storing values in ComponentRN table
 +
 +
-->{{#cargo_store:
 +
_table=ComponentRN
 +
|Highlight={{{Highlight|}}}
 +
|HighlightBoilerplateId={{{HighlightBoilerplateId|}}}
 +
|Containers={{{Containers|}}}
 +
|ComponentId={{{ComponentId|}}}
 +
|ReleaseNumber={{#explode:{{FULLPAGENAME}}|/|2}}
 +
|ReleaseDate={{{ReleaseDate|}}}
 +
|PrivateEditionReleaseDate={{{PrivateEditionReleaseDate|}}}
 +
|MixedModeReleaseDate={{{MixedModeReleaseDate|}}}
 +
|ReleaseTypeId={{{ReleaseTypeId|}}}
 +
|JQL={{{JQL|}}}
 +
|DeploymentTypeId={{{DeploymentTypeId|}}}
 +
}}<!--
 +
 +
setting up mintydocs topic
 +
 +
-->{{#mintydocs_topic:
 +
|standalone
 +
|display name=Base unit of content for {{#cargo_query:tables=Component|fields=Name|where=Id="{{{ComponentId|}}}"|no html}} - {{#explode:{{FULLPAGENAME}}|/|2}}
 +
}}<!--
 +
 +
table of main ComponentRN values from form
 +
 +
-->
 
==Component RN Definition==
 
==Component RN Definition==
 
{| class="wikitable"
 
{| class="wikitable"
Line 44: Line 85:
 
|{{#if: {{{HighlightBoilerplateId|}}} | {{Template:{{{HighlightBoilerplateId|}}}|{{{ReleaseNumber|}}}}} |  }}
 
|{{#if: {{{HighlightBoilerplateId|}}} | {{Template:{{{HighlightBoilerplateId|}}}|{{{ReleaseNumber|}}}}} |  }}
 
|-
 
|-
 +
! Boilerplate(s) Used
 +
| {{#arraymap:{{{HighlightBoilerplateId|}}}|,|x|{{#cargo_query:tables=Boilerplate|fields= CONCAT('[[Template:',Id,'{{!}}',Name,']]')|where=Id="x"}} }}
 +
 +
|-
 
! Release Date
 
! Release Date
 
| {{{ReleaseDate|}}}
 
| {{{ReleaseDate|}}}
Line 67: Line 112:
 
| Links to test pages (for RN Admins only)
 
| Links to test pages (for RN Admins only)
 
{{#cargo_query:tables=ArticleCloudRN|field=_pageName|where=ComponentId HOLDS '{{{ComponentId|}}}' AND ArticleCloudRN._pageName LIKE "%Internal%"|format=ul|default=None yet!}}
 
{{#cargo_query:tables=ArticleCloudRN|field=_pageName|where=ComponentId HOLDS '{{{ComponentId|}}}' AND ArticleCloudRN._pageName LIKE "%Internal%"|format=ul|default=None yet!}}
|}{{#cargo_query:
+
|}<!--
tables=ComponentRN,Issue,IssueCategory
+
 
|join on=ComponentRN._pageName=Issue._pageName,Issue.IssueCategoryId=IssueCategory.Id
+
query to list Issues saved to this page
|fields=CONCAT ('[https://genesysjira.atlassian.net/browse/',Issue.TicketNumber,' ',Issue.TicketNumber,']')=Issue,IssueCategory.Name=Issue Category,<!--DeploymentType.Name=Deployment Type,-->IF(LENGTH(LocalContent) > 100, CONCAT(
+
 
SUBSTRING(LocalContent, 1, 100),"..."), LocalContent)=Description,SupportingDocumentation
+
-->{{#cargo_query:
|format=dynamic table
+
tables=ComponentRN,Issue,IssueCategory
|where=ComponentRN.ComponentId ="{{{ComponentId|}}}" AND ReleaseNumber="{{#explode:{{FULLPAGENAME}}|/|2}}"
+
|join on=
|group by=Issue.TicketNumber
+
ComponentRN._pageName=Issue._pageName,
|order by=IssueCategory.PrintOrder ASC
+
Issue.IssueCategoryId=IssueCategory.Id
}}__NOCACHE__
+
|fields=
 +
CONCAT ('[https://genesysjira.atlassian.net/browse/',Issue.TicketNumber,' ',Issue.TicketNumber,']')=Issue,
 +
IssueCategory.Name=Issue Category,
 +
<!--DeploymentType.Name=Deployment Type,-->
 +
IF(LENGTH(LocalContent) > 100, CONCAT(SUBSTRING(LocalContent, 1, 100),"..."),LocalContent)=Description,
 +
SupportingDocumentation
 +
|format=dynamic table
 +
|where=
 +
ComponentRN.ComponentId ="{{{ComponentId|}}}"  
 +
AND ReleaseNumber="{{#explode:{{FULLPAGENAME}}|/|2}}"
 +
|group by=Issue.TicketNumber
 +
|order by=IssueCategory.PrintOrder ASC
 +
}}<!--
 +
 
 +
supressing cache and section editing, adding TOC
 +
 
 +
-->__NOCACHE__
 
__TOC__
 
__TOC__
__NOINDEX__
+
__NOINDEX__</includeonly>
[[Category:EditRN]]</includeonly>
+
<noinclude>[[Category:RNAutomation]][[Category:ComponentRN.ComponentId cleanup]]</noinclude>
<noinclude>[[Category:RNAutomation]][[Category:ComponentRN.ComponentId cleanup]] </noinclude>
 

Revision as of 19:16, July 18, 2022

This is the "ComponentRN" template. It should be called in the following format:

{{ComponentRN
|Highlight=
|HighlightBoilerplateId=
|ComponentId=
|ReleaseNumber=
|ReleaseDate=
|PrivateEditionReleaseDate=
|MixedModeReleaseDate=
|ReleaseTypeId=
|JQL=
|DeploymentTypeId=
|Containers=
}}

Edit the page to see the template text. This template defines the table "ComponentRN". View table.

Retrieved from "https://all.docs.genesys.com/Template:ComponentRN (2024-05-03 03:18:27)"