Access the Kanban Column (a Team-Specific Field) for a Work Item

后端 未结 3 1647
無奈伤痛
無奈伤痛 2021-01-04 21:01

Is there a way to programmatically access the \"Kanban Column\" for a WorkItem using the TFS 2012 API?

Using the Scrum 2.2 template, the history of a Bug or Product

3条回答
  •  梦谈多话
    2021-01-04 21:34

    I am not familiar with the Scrum 2.2 template, but the works are the same for CMMI or Scrum templates when it comes to TFS Work Item tracking.

    Try something like this:

    public string GetKanbanColumn(WorkItem wi)
    {
        if (wi != null)
        {
            return wi["Kanban"].ToString();
        }
        return string.Empty;
    }
    

    Depending on the actual name of the column, specified in the Work Item Template XML file. Hope this helps.

提交回复
热议问题