WIT编辑 - 条件子句 [英] WIT editing - conditional clause

查看:102
本文介绍了WIT编辑 - 条件子句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用XML编辑工作项。我有一个场景 

"每个开发者负责一个AreaPath"。因此,当我添加bug并更改AreaPath时,我想更改AssignedTo。

I wanted to edit work item in XML. I have a scenario 
"every developer is responsible for one AreaPath". So when i adding bug and change AreaPath I wanted to change AssignedTo.

我认为,WHEN子句是合适的。我在System.AssignedTo上添加了条款 

I think, that WHEN clause will be appropriate. I add clause on System.AssignedTo 

当AreaPath ='abc'时,那么AssignedTo ='Dev1'

当AreaPath ='cde'那么...... Dev2等

但没有奏效。我尝试在转换时做到这一点,同样的结果
只有在我第一次分配"areapath"时,当我改变"areapath"时,它才有效。对于另一个不起作用

but didn't work. I tried to do it on transition, same result

It only works when I assign first time "areapath", when i change "areapath" for another didn't work

有没有人有任何想法

Does anyone have any idea




推荐答案

嗨!

您可以将AreaId用于此目的。

You may use AreaId for this purpose.

检查流程自定义指南
https:// vsartfsptguide.codeplex.com/
。它具有"演练 - 场景3 - 区域路径深度验证"。解释使用它的部分。

Check process customization guide https://vsartfsptguide.codeplex.com/ . It has "Walkthrough - Scenario 3 - Area Path Depth validation" section which explains of using it.


这篇关于WIT编辑 - 条件子句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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