Exemplo n.º 1
0
        public ProcessWorkItemTypeField Field_GetWorkItemTypeField()
        {
            ProcessWorkItemTypeField processWorkItemTypeField = null;

            System.Guid processId = Context.GetValue <Guid>("$processId");

            VssConnection connection = Context.Connection;
            WorkItemTrackingProcessHttpClient client = connection.GetClient <WorkItemTrackingProcessHttpClient>();

            processWorkItemTypeField = client.GetWorkItemTypeFieldAsync(processId, _witRefName, _fieldRefName).Result;

            return(processWorkItemTypeField);
        }
Exemplo n.º 2
0
        public static ProcessWorkItemTypeField GetField(VssConnection connection, Guid processId, string witRefName, string fieldRefName)
        {
            WorkItemTrackingProcessHttpClient client = connection.GetClient <WorkItemTrackingProcessHttpClient>();

            try
            {
                ProcessWorkItemTypeField item = client.GetWorkItemTypeFieldAsync(processId, witRefName, fieldRefName).Result;

                return(item);
            }
            catch (Exception ex)
            {
                return(null);
            }
        }