获取我在TFS2013中使用的所有TFS工作项

时间:2015-03-31 15:48:28

标签: tfs2013

工作项通常在QA手中结束,因此其“分配给”字段通常是QA的名称,而不是开发人员。作为开发人员,我如何找到我曾经工作过的所有工作项目?我试过“历史包含Word @me”,它返回的项目远远少于我的预期。

1 个答案:

答案 0 :(得分:0)

我能看到的最好的是

的组合
var x = false
let xAny : Any = x

switch xAny {
case is Int: print("x is an integer")
case is Double: print("x is a double")
case is String: print("x is a string")
case is Bool: print("x is a boolean")
case _: print("x is of unknown type")
} /* prints "x is a boolean" */

OR

/*
 * File: YesNoQuestion.java
 * ------------------------
 * This program asks the user a question and expects a yes / no
 * answer. It is also exercise 7 in Chapter 5.
 * "Write a predicate method askYesNoQuestion(prompt) that prints 
 * the string prompt as a question for the user and then waits 
 * for a response. If the user enters the string "yes", the 
 * askYesNoQuestion method should return true; if the user enters 
 * "no", the method should return false. If the user enters 
 * anything else, askYesNoQuestion should remind the user that it 
 * is seeking a yes-or-no answer and then repeat the question."
 */

import acm.program.*;

public class YesNoQuestion extends ConsoleProgram {

    public void run () {
        String prompt = "Are you over 18 year old?";
        if (askYesNoQuestion(prompt) == true) {
            println("Evaluated true.");
        }
        else if (askYesNoQuestion(prompt) == false) {
            println ("Evaluated false");
        }
    }
/* Predicate method returns true if user enters the string "yes"
 * and false if the user enters "no", else informs user that it is 
 * expecting a yes or no answer.    
 */
    private boolean askYesNoQuestion(String prompt) {
        String userInput = readLine(prompt);
        boolean trueOrFalse = true;
        while(true) {
            if (userInput.equalsIgnoreCase("yes")){
                trueOrFalse = true;
                break;
            }
            else if (userInput.equalsIgnoreCase("no")) {
                trueOrFalse = false;
                break;
            }
            else {
                println("Please answer yes or no");
                userInput = readLine(prompt);
            }
        }
        return trueOrFalse;
    }
}

Changed By | Was Ever | @Me 设置可以返回一些糠,但肯定会匹配您的工作。您仍然需要Assigned To | = | @Me ,因为您可能尚未更改它。

如果您愿意,还可以添加Changed By以查看您提及的项目(全名!),但这似乎与创建历史记录条目的人员的姓名不相符。< / p>