我试图通过在 maniphest.custom-field-definitions
中添加文件来设置自定义搜索字段 . 完全定制如下
{
"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
设置搜索字段时遇到问题 . 这个字段应该按照它的方式搜索 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实现此目的,请建议如何实现此目的 .
1 回答
您可以使用默认情况下Maniphest附带的本机“Blocked By”或“Blocks”字段 . 这是最简单的选择 .