【发布时间】:2020-07-28 15:03:51
【问题描述】:
我正在尝试使用 Power Automate 通过“workitemsearch”API(通过“发送 HTTP 请求”操作)在 Azure DevOps 中返回自定义工作项。其中一部分将要求我根据自定义字段的值进行过滤,但是,我无法让它工作。这是我的 HTTP 请求正文的副本:
{
"searchText": "ValueToSearch",
"$skip": 0,
"$top": 1,
"filters": {
"System.TeamProject": ["MyProject"],
"System.AreaPath": ["MyAreaPath"],
"System.WorkItemType": ["MyCustomWorkItem"],
"Custom.RequestNumber": ["ValueToSearch"]
},
"$orderBy": [
{
"field": "system.id",
"sortOrder": "ASC"
}
],
"includeFacets": true
}
我已经能够通过删除 Custom.RequestNumber": ["ValueToSearch"] 来使其工作,但如果我的 ValueToSearch 在其他地方(如 cmets)被发现,我会犹豫使用它其他工作项。
对此的任何帮助将不胜感激。
干杯!
【问题讨论】:
标签: azure-devops-rest-api power-automate