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
(Created page with "<includeonly> {| class="wikitable" width=100% style="margin:0;" ! style="text-align:left;width:35%;" | Phabricator Link | style="text-align:left;" | <span class="pops plainlin...")
 
No edit summary
Line 29: Line 29:
|-
|-
! 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>[[Phab:@@@@]]</li>|}}</ul>
|-
|-
! style="text-align:left;" | Parent Tasks
! style="text-align:left;" | Parent Tasks
Line 52: Line 52:
{{{owner|}}}
{{{owner|}}}
{{{projects|}}}
{{{projects|}}}
{{#arraymap:{{{subtasks|}}}|,|@@@@|{{#ifexist:T@@@@|{{#set:Subtask=T@@@@}}}}}}
{{#arraymap:{{{subtasks|}}}|,|@@@@|{{#ifexist:Phab:T@@@@|{{#set:Subtask=Phab:T@@@@}}}}}}
{{#set:Title Icon=Phab.png}}
{{#set:Title Icon=Phab.png}}
[[Category:Phabricator Tasks]]
[[Category:Phabricator Tasks]]
</div>
</div>
</includeonly>
</includeonly>

Revision as of 16:29, 9 June 2019