- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我使用 Java API 以编程方式创建 VersionOne Assets 的对话。在检查 Web UI 上的对话时,我发现提到的 Assets 是按字母顺序排列的。
我想知道是否有办法覆盖提及的默认排列。目标排列是从父 Assets -> 子 Assets 。
类似这样的:
我尝试过的一些事情:
首先添加父资源,然后添加子资源:
// create a new conversation; this will act as the container of the expression (message)
IAssetType conversationType = super.connection.metaModel.getAssetType(CONVERSATION);
Asset conversationAsset = super.connection.services.createNew(conversationType, Oid.Null);
super.connection.services.save(conversationAsset);
// create a new expression containing the error message
IAssetType expressionType = super.connection.metaModel.getAssetType(EXPRESSION);
IAttributeDefinition expressionContentAttr = super.connection.metaModel.getAttributeDefinition(EXPRESSION_CONTENT);
IAttributeDefinition expressionBelongsTo = super.connection.metaModel.getAttributeDefinition(EXPRESSION_BELONGS_TO);
IAttributeDefinition expressionMentionsAttr = super.connection.metaModel.getAttributeDefinition(EXPRESSION_MENTIONS);
Asset expressionAsset = super.connection.services.createNew(expressionType, Oid.Null);
// set the message
expressionAsset.setAttributeValue(expressionContentAttr, message);
// add the message to the conversation
expressionAsset.setAttributeValue(expressionBelongsTo, conversationAsset.oid);
// set the context of the expression to belong to the VersionOne record
Oid oid = Oid.fromToken(entity.oid, super.connection.metaModel);
expressionAsset.addAttributeValue(expressionMentionsAttr, oid);
// add mentions of other assets to the conversation
for (String assetOid : assetOids) {
Oid otherOid = Oid.fromToken(assetOid, super.connection.metaModel);
expressionAsset.addAttributeValue(expressionMentionsAttr, otherOid);
}
super.connection.services.save(expressionAsset);
最佳答案
如果你检查元数据,你会发现提及是一个多关系属性。不幸的是,无法设置多关系属性中项目的顺序。这是检查元的查询:
https://www14.v1host.com/v1sdktesting/meta.v1/Expression?xsl=api.xsl
VersionOne UI 有一些逻辑,可以在显示对话之前设置对话提及的顺序。
关于java - 如何在 VersionOne 中重新排列表达式中提及的顺序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25050918/
例如:当我查找 Task 的所有属性时https:///VersionOne/rest-1.v1/Data/Task我得到诸如“Todo”和“DetailedEstimates”之类的信息,但与“完成
是否有任何方法可以与团队成员共享积压工作 URL,以便当他们单击该 URL 时,可以直接转到积压工作项目? -参数 最佳答案 VersionOne 有一个可用于此目的的永久链接端点。 例如,如果您知道
我使用 Java API 以编程方式创建 VersionOne Assets 的对话。在检查 Web UI 上的对话时,我发现提到的 Assets 是按字母顺序排列的。 我想知道是否有办法覆盖提及的默
有人可以展示一些示例代码,说明如何使用 API 客户端将外部文件附加到版本一请求吗?假设我们已经有了文件名和票证 ID。我发现这是通过 ObjectModel 完成的,但不是我可以通过 API 客户端
当我从 python 控制台调用 Create API 时,出现以下异常。 Traceback (most recent call last): File "", line 3, in File
我希望检索属于项目 A 并在过去 24 小时内修改的所有缺陷的列表。我使用下面给出的代码来检索属于项目的所有缺陷的列表(项目是包含项目名称的字符串变量) scope=defectTyp
假设我想计算缺陷的累积估计值。我愿意 double estimate = 0.0; Double tEstimate = 0.0; Collection defects = project.getDe
我遇到了 VersionOneAPIClient 的问题,因为它无法识别我给它的任何 Assets 类型。我知道属性定义可能没有任何意义,但我一直在尝试几乎所有的事情。我的最终目标是查询 TeamRo
更新:问题(见下文;见“原始问题”)仍然有效,但我有更多数据。通过将访问 token 作为 services 字段被实例化的字符串放入源代码,我能够成功检索 Assets 。即,这有效: String
鉴于此查询(为便于阅读而添加的间距): rest-1.v1\Data\Story? sel= Children.ID, Children.Actuals.Val
如何通过 VersionOne 的 RESTful API 更改 Stories 的排名顺序? 最佳答案 如果你做一个数据查询http://YourVersionOne/rest-1.v1/Data/
我有一个如下查询, /rest-1.v1/Data/TeamRoom?sel=名称,团队,参与者.@Count&where=Team='团队:4250032' 如何通过 VersionOne Java
我正在尝试在 VersionOne 中创建一个新的“表达式”——有效地向对话添加一个新的“评论”。 理论上,rest-1.v1/Data API 应该允许这样做,但我不知道该怎么做——关于使用 API
我正在尝试在 Node.js ( https://github.com/versionone/VersionOne.SDK.JavaScript ) 中使用 VersionOne JS SDK。我只是
我正在尝试使用“VersionOne.SDK.Java.APIClient 13.0.1”jar 创建缺陷。 Oid projectId = services.getOid(scope
我正在执行一项任务,要求我将所有 Assets 及其所有属性值导出到 CSV 文件中。我知道有一个选项可以导出到 Excel,但是这个选项有其问题,我们决定给 API 一个机会。 我面临的问题是,虽然
我们的工具,Deveo , 是一个代码托管和协作平台,支持 Git、Subversion 和 Mercurial。我们有一个客户案例,他们使用 VersionOne .在 VersionOne 中有一
[这听起来像是一个“哪个更好”的问题,但事实并非如此。] 我们使用 Team Foundation Server 2012 进行版本控制和错误跟踪(不会改变)。我们正在转向敏捷,并被要求使用 Vers
我一直在尝试使用 VersionOne.SDK.Java.APIClient 在 V1 上查询特定 Assets (故事/缺陷)来检索信息。我能够检索故事或缺陷下的 ID.Number、Status.
我正在尝试在我的项目中使用 VersionOne Javascript sdk。但在此之前,我从 https://github.com/versionone/VersionOne.SDK.JavaSc
我是一名优秀的程序员,十分优秀!