Difference between revisions of "Template:Ticket"

From BITPlan Wiki
Jump to navigation Jump to search
(pushed from rq by wikipush)
 
(pushed from media by wikipush)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude><!-- THIS FILE IS PROTECTED - smartGENERATOR WILL NOT OVERWRITE IT -->
 
This template is for referencing tickets
 
This template is for referencing tickets
  
 
see
 
see
{{Link|target=Property:Ticket}}
+
* {{Link|target=Property:Ticket title}}
 +
* {{Link|target=Property:Ticket project}}
 +
* {{Link|target=Property:Ticket number}}
 +
* {{Link|target=Property:Ticket closedAt}}
 +
* {{Link|target=Property:Ticket createdAt}}
 +
* {{Link|target=Property:Ticket url}}
 +
 
 
= Usage =
 
= Usage =
 
<pre>{{Ticket|30|Cleanup Template}}</pre>
 
<pre>{{Ticket|30|Cleanup Template}}</pre>
 +
<pre>{{Ticket|CONFIDENT-373|Webanalytics strategy|wiki.tib.eu}}</pre>
 +
 
{{Ticket|30|Cleanup Template}}
 
{{Ticket|30|Cleanup Template}}
 +
{{Ticket|CONFIDENT-373|Webanalytics strategy|wiki.tib.eu}}
 +
 
[[Category:Template]]
 
[[Category:Template]]
</noinclude><includeonly>{{#vardefine:no|{{{1|}}}}}{{#vardefine:title|{{{2|}}}}}{{#vardefine:project|{{{3|SmartDataAnalytics/OpenResearch}}}}}{{#subobject:-
+
</noinclude><includeonly>{{#vardefine:path|/issues/}}{{#if:{{{number|}}}|{{#vardefine:number|{{{number|}}}}}|{{#vardefine:number|{{{1|}}}}}}}{{#if:{{{title|}}}|{{#vardefine:title|{{{title|}}}}}|{{#vardefine:title|{{{2|}}}}}}}{{#if:{{{project|}}}|{{#vardefine:project|{{{project|}}}}}|{{#vardefine:project|{{{3|SmartDataAnalytics/OpenResearch}}}}}}}{{#vardefine:url|{{#show:{{#var:project}}|?OsProject url}}}}{{#if:{{#pos:{{#var:url}}|/jira/}}|{{#vardefine:path|/}}}}[{{#var:url}}{{#var:path}}{{#var:number}} Issue {{#var:number}} - {{#var:title}}]{{#subobject:-
|Ticket no={{#var:no}}
+
|Ticket number={{#var:number}}
 
|Ticket title={{#var:title}}
 
|Ticket title={{#var:title}}
 
|Ticket project={{#var:project}}
 
|Ticket project={{#var:project}}
}}{{#vardefine:url|{{#show:{{#var:project}}|?OsProject url}}}}[{{#var:url}}/issues/{{#var:no}} Issue {{#var:no}} - {{#var:title}}]</includeonly>
+
|Ticket url={{#var:url}}{{#var:path}}{{#var:number}}
 +
|Ticket createdAt={{{createdAt|}}}
 +
|Ticket closedAt={{{closedAt|}}}
 +
}}{{#ifeq:{{{state|}}}|closed|{{Done}}|}}</includeonly>

Latest revision as of 09:15, 29 January 2022

This template is for referencing tickets

see

Usage

{{Ticket|30|Cleanup Template}}
{{Ticket|CONFIDENT-373|Webanalytics strategy|wiki.tib.eu}}

[/issues/30 Issue 30 - Cleanup Template]"http:///issues/30" has been identified to contain an invalid "/issues/30" authority or path component. [/issues/CONFIDENT-373 Issue CONFIDENT-373 - Webanalytics strategy]"http:///issues/CONFIDENT-373" has been identified to contain an invalid "/issues/CONFIDENT-373" authority or path component.