TFS WorkItemRelation 属性对象?

TFS WorkItemRelation Attributes Object?

参考本文档: https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/work%20items/get%20work%20item%20template?view=azure-devops-rest-4.1#workitemrelation

在页面底部,WorkItemRelation 的描述是:

WorkItemRelation

+------------------------------------------------------+
+    Name    +  Type  +           Description          +
+------------+--------+--------------------------------+
+------------+--------+--------------------------------+
+ attributes + object + Collection of link attributes. +
+------------+--------+--------------------------------+
+     rel    + string + Relation type.                 +
+------------+--------+--------------------------------+
+     url    + string + Link url                       + 
+------------+--------+--------------------------------+

什么是属性对象?我找不到它的定义。有没有人用过TFSapi够熟悉了?

该属性是帮助我们识别工作项关系类型的详细属性的对象类型,

您可以轻松地从Work Item Relation Types API

中获取属性的定义

示例:

{
  "attributes": {
    "usage": "workItemLink",
    "editable": false,
    "enabled": true,
    "acyclic": true,
    "directional": true,
    "singleTarget": false,
    "topology": "tree",
    "isForward": true,
    "oppositeEndReferenceName": "System.LinkTypes.Duplicate-Reverse"
  },
  "referenceName": "System.LinkTypes.Duplicate-Forward",
  "name": "Duplicate",
  "url": "https://dev.azure.com/fabrikam/_apis/wit/workItemRelationTypes/System.LinkTypes.Duplicate-Forward"
}

Attributes由以下JSON个元素组成,

  • 用法
  • 可编辑
  • 启用
  • 无环
  • 定向
  • 单一目标
  • 拓扑
  • isForward
  • oppositeEndreferenceName