Difference between revisions of "Template:Phabricator Task"
From cpt
No edit summary |
No edit summary |
||
(50 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
| style="text-align:left;" | {{#if:{{{color|}}}|{{Priority Link|{{{color|}}}}}}} | | style="text-align:left;" | {{#if:{{{color|}}}|{{Priority Link|{{{color|}}}}}}} | ||
|- | |- | ||
! style="text-align:left;" | | ! style="text-align:left;" | Points | ||
| style="text-align:left;" | | style="text-align:left;" | {{#if:{{{points|}}}|{{{points|}}}}} | ||
|- | |- | ||
! style="text-align:left;" | | ! style="text-align:left;" | Phabricator Task Created | ||
| style="text-align:left;" | {{ | | style="text-align:left;" | {{#if:{{{dateCreated|}}}|{{#timel:Y/m/d h:i A|@{{{dateCreated|}}}}}}} | ||
|- | |||
! style="text-align:left;" | Wiki Page Created | |||
| style="text-align:left;" | {{#timel:Y/m/d h:i A|{{#show:{{FULLPAGENAME}}|?Creation date}}}} | |||
|- | |||
! style="text-align:left;" | Phabricator Task Last Modified | |||
| style="text-align:left;" | {{#if:{{{dateModified|}}}|{{#timel:Y/m/d h:i A|@{{{dateModified|}}}}}}} | |||
|- | |||
! style="text-align:left;" | Wiki Page Last Updated | |||
| style="text-align:left;" | {{#timel:Y/m/d h:i A|{{#show:{{FULLPAGENAME}}|?Modification date}}}} | |||
|- | |||
! style="text-align:left;" | Phabricator Task Closed | |||
| style="text-align:left;" | {{#if:{{{dateClosed|}}}|{{#timel:Y/m/d h:i A|@{{{dateClosed|}}}}}}} | |||
|- | |||
! style="text-align:left;" | Authored By | |||
| style="text-align:left;" | {{Author Link|{{#show:{{FULLPAGENAME}}|?Task Author}}}} | |||
|- | |||
! style="text-align:left;" | Assigned To | |||
| style="text-align:left;" | {{Assignee Link|{{#show:{{FULLPAGENAME}}|?Assignee}}}} | |||
|- | |- | ||
! style="text-align:left;" | Projects | ! style="text-align:left;" | Projects | ||
| style="text-align:left;" | {{#ask:[[-Has subobject::{{FULLPAGENAME}}]]|?Project|?Column|mainlabel=-|format=ul|template=Project Link | | style="text-align:left;" | {{#ask:[[-Has subobject::{{FULLPAGENAME}}]]|?Project|?Column|mainlabel=-|format=ul|sort=Project|template=Project Link}} | ||
|- | |- | ||
! style="text-align:left;" | | ! style="text-align:left;" | Platform Engineering Initiative Column | ||
| style="text-align:left;" | {{#show:{{FULLPAGENAME}}|? | | style="text-align:left;" | {{#show:{{FULLPAGENAME}}|?PET Initiative}} | ||
|- | |- | ||
! style="text-align:left;" | | ! style="text-align:left;" | Platform Team Workboards Column | ||
| style="text-align:left;" | {{#show:{{FULLPAGENAME}}|? | | style="text-align:left;" | {{#show:{{FULLPAGENAME}}|?PET Column}} | ||
|- | |- | ||
! style="text-align:left;" | Subtasks | ! style="text-align:left;" | Subtasks | ||
| style="text-align:left;" | <ul>{{#arraymap:{{#ask:[[{{FULLPAGENAME}}]]|?Subtask|headers=hide|mainlabel=-|link=none}}|,|@@@@|<li>[[@@@@]]</li>|}}</ul> | | style="text-align:left;" | <ul>{{#arraymap:{{#ask:[[{{FULLPAGENAME}}]]|?Subtask|headers=hide|mainlabel=-|link=none}}|,|@@@@|<li>[[@@@@]] ({{#show:@@@@|?Status}})</li>|}}</ul> | ||
|- | |- | ||
! style="text-align:left;" | Parent Tasks | ! style="text-align:left;" | Parent Tasks | ||
| style="text-align:left;" | {{#ask:[[Subtask::{{FULLPAGENAME}}]]|format=ul}} | | style="text-align:left;" | {{#ask:[[Subtask::{{FULLPAGENAME}}]]|format=ul}} | ||
|} | |} | ||
{{# | {{#ask:[[-Has subobject::{{FULLPAGENAME}}]][[Transition Type::+]] | ||
|?Transition Type | |||
| | |?Transition Project | ||
| | |?Transition Column | ||
| | |?Transition Date | ||
|mainlabel=- | |||
|sort=Transition Timestamp, Transition Type | |||
| | |order=asc,desc | ||
| | |format=template | ||
| | |introtemplate=Task Transition Table Intro | ||
|template=Task Transition Table Row | |||
|outrotemplate=Table Outro | |||
|limit=500 | |||
}} | }} | ||
<div style="display:none;"> | <div style="display:none;"> | ||
Line 49: | Line 67: | ||
{{#set:Status={{{status|}}}}} | {{#set:Status={{{status|}}}}} | ||
{{#set:Priority={{{color|}}}}} | {{#set:Priority={{{color|}}}}} | ||
{{#set:Points={{{points|}}}}} | |||
{{#set:Task Created Timestamp={{{dateCreated|}}}}} | |||
{{#set:Task Created Date={{#if:{{{dateCreated|}}}|{{#timel:Y/m/d h:i:s A|@{{{dateCreated|}}}}}}}}} | |||
{{#set:Task Modified Timestamp={{{dateModified|}}}}} | |||
{{#set:Task Modified Date={{#if:{{{dateModified|}}}|{{#timel:Y/m/d h:i:s A|@{{{dateModified|}}}}}}}}} | |||
{{#set:Task Closed Timestamp={{{dateClosed|}}}}} | |||
{{#set:Task Closed Date={{#if:{{{dateClosed|}}}|{{#timel:Y/m/d h:i:s A|@{{{dateClosed|}}}}}}}}} | |||
{{{author|}}} | {{{author|}}} | ||
{{{owner|}}} | {{{owner|}}} | ||
{{{projects|}}} | {{{projects|}}} | ||
{{{transitions|}}} | |||
{{#arraymap:{{{subtasks|}}}|,|@@@@|{{#ifexist:Phab:T@@@@|{{#set:Subtask=Phab:T@@@@}}}}}} | {{#arraymap:{{{subtasks|}}}|,|@@@@|{{#ifexist:Phab:T@@@@|{{#set:Subtask=Phab:T@@@@}}}}}} | ||
{{#set:Title Icon=Phab.png}} | {{#set:Title Icon=Phab.png}} |