This site is no longer actively maintained. It exists for historical purposes as an example of Phabricator integration and Lua scripting.

Difference between revisions of "Template:Phabricator Task"

From cpt
No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 28: Line 28:
| style="text-align:left;" | {{#if:{{{dateClosed|}}}|{{#timel:Y/m/d h:i A|@{{{dateClosed|}}}}}}}
| style="text-align:left;" | {{#if:{{{dateClosed|}}}|{{#timel:Y/m/d h:i A|@{{{dateClosed|}}}}}}}
|-
|-
! style="text-align:left;" | Author
! style="text-align:left;" | Authored By
| style="text-align:left;" | {{Author Link|{{#show:{{FULLPAGENAME}}|?Author}}}}
| style="text-align:left;" | {{Author Link|{{#show:{{FULLPAGENAME}}|?Task Author}}}}
|-
|-
! style="text-align:left;" | Owner
! style="text-align:left;" | Assigned To
| style="text-align:left;" | {{Owner Link|{{#show:{{FULLPAGENAME}}|?Owner}}}}
| 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|sort=Project|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;" | Core Platform Team Initiative Column
! style="text-align:left;" | Platform Engineering Initiative Column
| style="text-align:left;" | {{#show:{{FULLPAGENAME}}|?CPT Column}}
| style="text-align:left;" | {{#show:{{FULLPAGENAME}}|?PET Initiative}}
|-
|-
! style="text-align:left;" | Core Platform Team Workboards Column
! style="text-align:left;" | Platform Team Workboards Column
| style="text-align:left;" | {{#show:{{FULLPAGENAME}}|?CPT Workboards Column}}
| style="text-align:left;" | {{#show:{{FULLPAGENAME}}|?PET Column}}
|-
|-
! style="text-align:left;" | Subtasks
! style="text-align:left;" | Subtasks
Line 49: Line 49:
| style="text-align:left;" | {{#ask:[[Subtask::{{FULLPAGENAME}}]]|format=ul}}
| style="text-align:left;" | {{#ask:[[Subtask::{{FULLPAGENAME}}]]|format=ul}}
|}
|}
'''Column Transitions:'''
{{#ask:[[-Has subobject::{{FULLPAGENAME}}]][[Transition Type::+]]
{{#ask:[[-Has subobject::{{FULLPAGENAME}}]][[Transition Type::+]]
|?Transition Type
|?Transition Project
|?Transition Project
|?Transition Column
|?Transition Column
|?Transition Type
|?Transition Date
|?Transition Date
|mainlabel=-
|mainlabel=-
|sort=Transition Timestamp, Transition Type
|sort=Transition Timestamp, Transition Type
|order=asc,desc
|order=asc,desc
}}
|format=template
{{#get_web_data:
|introtemplate=Task Transition Table Intro
url=https://gerrit.wikimedia.org/r/changes/?q=bug:{{PAGENAME}}
|template=Task Transition Table Row
|format=JSON
|outrotemplate=Table Outro
|data=number=_number,subject=subject,status=status,owner=owner,created=created,updated=updated,project=project
|limit=500
|json offset=5
}}{{#display_external_table:
template=Gerrit Table Row
|intro template=Gerrit Table Intro
|outro template=Table Outro
|data=number=number,subject=subject,status=status,owner=owner,created=created,updated=updated,project=project
}}
}}
<div style="display:none;">
<div style="display:none;">

Latest revision as of 10:51, 25 November 2020