我正在尝试使用REST API将Servicenow与Azure Devops Board集成,以创建/更新工作项等。
我成功地在工作项上创建和更新了很多内容。
我找不到一个API来告诉工作项位于特定的Swimlane中。
如果你看一下我附加的图片,其中有一个默认的Swimlane(test)和自定义的Swimlane……所以我有一个API将它从“ToDo”移动到“Doing”,但是如果你注意到有多个“Doing”,因为有不同的Swimlane,所以有人可以帮忙解决这个问题或提供一个API,告诉工作项落在特定的SwimLane中吗?
我进行了一些研究,发现了“System.BoardLane”,我在post和patch中使用了它。
错误:
{
"$id": "1",
"customProperties": {
"ReferenceName": null
},
"innerException": null,
"message": "TF401326: Invalid field status 'ReadOnly' for field 'System.BoardLane'.",
"typeName": "Microsoft.TeamFoundation.WorkItemTracking.Server.WorkItemFieldInvalidException, Microsoft.TeamFoundation.WorkItemTracking.Server",
"typeKey": "WorkItemFieldInvalidException",
"errorCode": 600171,
"eventId": 3200
}
然后我使用了操作"op":"move"
错误:
{
"$id": "1",
"innerException": null,
"message": "Move/Copy is not implemented.",
"typeName": "Microsoft.VisualStudio.Services.WebApi.Patch.PatchOperationFailedException, Microsoft.VisualStudio.Services.WebApi",
"typeKey": "PatchOperationFailedException",
"errorCode": 0,
"eventId": 3000
}