TFS 2015历史记录和附件的行为与以前的版本不同 [英] TFS 2015 history and attachment behave differently from previous versions

查看:133
本文介绍了TFS 2015历史记录和附件的行为与以前的版本不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用TFS SDK for Java,我们注意到TFS 2015与之前的TFS版本(2013年,2012年和2010年)之间存在一些差异。 我们测试了TFS-SDK-12.0.2和TFS-SDK-14.0.1,两者都产生了相同的结果。

Using TFS SDK for Java, we noticed a couple differences between TFS 2015 and previous TFS versions (2013, 2012, and 2010).  We tested TFS-SDK-12.0.2 and TFS-SDK-14.0.1 and both produced the same results.

1。设置"更改者"添加历史记录时,字段在2015年无效:

1. Setting "Changed By" field when adding a History has no effect in 2015:

workItem.getFields().getField(CoreFieldReferenceNames.HISTORY).setValue("Some content");
workItem.getFields().getField(CoreFieldReferenceNames.CHANGED_BY).setValue("ChangedByPerson"); 
workItem.save();

2015年:包含"部分内容"的历史记录条目由"登录用户"添加

In 2015: a history entry with "Some content" is added by "the logged in user"

在先前版本中:具有"某些内容"的历史记录条目由"ChangedByPerson(通过登录用户)"

In previous versions: a history entry with "Some content" is added by "ChangedByPerson (via logged in user)"

2添加。在2015年创建时忽略附件评论:

2. Attachment comment is ignored on creation in 2015:

workItem.getAttachments().add(AttachmentFactory.newAttachment(file, "Attachment comment"));
workItem.save();


2015年:Web UI显示带有空白注释的附件

在以前的版本中:Web UI显示附件与"附件评论"在评论字段中

In 2015: the web UI shows an attachment with blank comment

In previous versions: the web UI shows an attachment with "Attachment comment" in the comment field

这些是否会更改2015年的新功能,还是会在更新中修复这些功能? 谢谢。

Are these changes new features of 2015 or will these be fixed in updates?  Thanks.

推荐答案

嗨Ellena,

Hi Ellena,

CoreFieldReferenceNames.HISTORY和CHANGED_BY的价值是什么?

What're the value of CoreFieldReferenceNames.HISTORY and CHANGED_BY?

您是否可以使用较新的TFS SDK for JAVA在其他计算机上重现该问题?

Could you reproduce that issue in the other machine with newer TFS SDK for JAVA?

问候

Starain


这篇关于TFS 2015历史记录和附件的行为与以前的版本不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆