我必须在选择一个补丁时使用一个条件,只有这些条件应该在状态列中,只是选择状态 [英] I have to use a condition when a patch is selected, only these should come, in the states column, just selected states

查看:47
本文介绍了我必须在选择一个补丁时使用一个条件,只有这些条件应该在状态列中,只是选择状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,


我收到一个请求,当我选择一个补丁时,在工作项中的补丁类型中,只有选定状态应出现在状态下拉列表中。那可能吗。如果是,如何实现这一目标,我们正在使用当前的TFS 2013并升级到TFS 2015.我在确切的补丁数据类型上是
,但是我应该定义,我给了一个"WHEN"。 patch = ...,然后只允许值到来,而不是状态。所以我不想在各州定义,当这种状态来临时,我们只能选择这个补丁。如果这样做,
将在其中一个状态到来时显示此补丁。所以请建议我一个方法。或者只能定义,当达到这些状态时,它将仅显示此补丁。



谢谢


T.Uday

解决方案

嗨T.Uday。


谢谢在这里发布。


我想是"补丁"。您在上面提到的意思是字段。如果补丁是工作项字段,您可以编辑工作项定义文件,如下面的示例 一种解决方法。因为没有隐藏控件的规则,所以当补丁字段不等于特定值时,我只读取


例如,补丁字段有2个值。当值为1时,可以更改状态。

< FIELD name =" Patch" refname = QUOT; test.patch"类型= QUOT;字符串"> 
< ALLOWEDVALUES expanditems =" true">
< LISTITEM value =" one" />
< LISTITEM value =" two" />
< / ALLOWEDVALUES>
< DEFAULT from =" value"值= QUOT;一个" />
< / FIELD>
.......
< FIELD name =" State" refname = QUOT; System.State"类型= QUOT;字符串"报告= QUOT;尺寸">
< WHENNOT field =" test.patch"值= QUOT;一个">
< READONLY />
< / WHENNOT>
< HELPTEXT>新=尚未激活的新作品;活跃=工作仍有待完成;已关闭=已测试并已签入。< / HELPTEXT>
< / FIELD>


祝你好运,



HI,

I got a request that when i'm selecting a patch, in patch type in a work item, only selected states should appear in State drop down list. Is that possible. If yes, how this can be achieved, we are using currently TFS 2013 and upgrading to TFS 2015. I'm on the exact patch datatype, but should i define, i gave a "WHEN" patch = ..., then only allowed values are coming, not states. So i don't want in the states to define, when this state will come, only this patch we can select. If this is done, it will show this patch when one of these states will come. So please suggest me a way. Or it is only possible to define, when these states are reached, it will show this patch only.

Thanks

T.Uday

解决方案

Hi T.Uday.

Thank you for posting here.

I suppose the "patch" you mentioned above means field. If patch is a workitem field, you could edit the workitem definition file like the example below as a workaround. Because there's no rules to hide a control, so I make it readonly when the patch field is not equal the specific value.

For example, the patch field has 2 values. When the value is one, the state could be changed.

<FIELD name="Patch" refname="test.patch" type="String">
        <ALLOWEDVALUES expanditems="true">
          <LISTITEM value="one" />
          <LISTITEM value="two" />
        </ALLOWEDVALUES>
        <DEFAULT from="value" value="one" />
</FIELD>
.......
<FIELD name="State" refname="System.State" type="String" reportable="dimension">
        <WHENNOT field="test.patch" value="one">
          <READONLY />
        </WHENNOT>
        <HELPTEXT>New = New work not yet activated; Active = work remains to be done; Closed = tested and checked in.</HELPTEXT>
</FIELD>

Best regards,


这篇关于我必须在选择一个补丁时使用一个条件,只有这些条件应该在状态列中,只是选择状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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