2015-11-06 67 views
1

我试图通过在maniphest.custom-field-definitions中添加fileds来设置自定义搜索字段。全定制低于如何在为phabricator中的操作定义自定义选项时添加对象搜索?

{ 
    "mycompany:estimated-hours": { 
    "name": "Estimated Hours", 
    "type": "text", 
    "caption": "Estimated number of hours this will take.", 
    "required": true 
    }, 
    "mycompany:deadline": { 
    "name": "Deadline", 
    "type": "date", 
    "caption": "Deadline of the project" 
    }, 
    "mycompany:actual-hours": { 
    "name": "Actual Hours", 
    "type": "text", 
    "caption": "Actual number of hours this took." 
    }, 
    "mycompany:company-jobs": { 
    "name": "Work Type", 
    "type": "select", 
    "options": { 
     "mycompany:engineer": "Engineer", 
     "mycompany:designer": "Designer", 
     "mycompany:qa": "Quality Assurance", 
     "mycompany:other": "Non Technical" 
    } 
    }, 
    "mycompanyname:fieldname": { 
    "name": "Blocked by task", 
    "type": "users", 
    "caption": "Add any dependency on other tasks", 
    "required":false 
    } 
} 

我在设置phabricator中的Blocked by task搜索字段时出现问题。此字段应该寻找maniphest它的方式与type="users"

我度过一整天努力实现在许多方面,这功能,例如

{ 
"mycompany:blocks-manifest": { 
    "name": "Blocked By", 
    "type": "text", 
    "strings": { 
     "search.default": "(ANY)" 
    }, 
    "caption": "If there is any dependency, please specify", 
    "options" :{ 
     "search.default": "(ANY)" 
    } 
    } 
} 

除了

{ 
    "mycompany:blocks-manifest": { 
    "name": "Blocked By", 
    "type": "search", 
    "strings": { 
     "search.default": "(ANY)" 
    }, 
    "caption": "If there is any dependency, please specify" 
    } 
} 

而且这种方式太

{ 
    "mycompany:blocks-manifest": { 
    "name": "Blocked By", 
    "type": "text", 
    "strings": search.default, 
    "caption": "If there is any dependency, please specify" 
    } 
} 

如果我总结自己,我已经审查了在Phabricator文档中的Configuring Custom Fields这方面的文档,但没有收益。

关于如何修复或实现搜索maniphest.custom-field-definations下phabricator中以前的任务的方法的任何线索?

从任何phabricator的建议是非常鼓励的。

如果我必须通过Adding New Classes来实现此目的,请为此提出建议。

+0

在Maniphest中原生有一个“Blocked by”字段,为什么使用自定义字段? –

+0

是的,你是对的。我刚刚发现。无论如何,你能否给我一个答案,以便我可以将其标记为已接受并关闭该问题? 在使用自定义字段将任务链接到另一个任务的任何想法之间也会有所帮助。 –

回答

0

默认情况下,您可以使用Maniphest附带的本机“Blocked By”或“Blocks”字段。这是最简单的选择。

+0

感谢您确认此过程。我期待这是一个自定义选项,而不是核心功能。 –

相关问题