-
Notifications
You must be signed in to change notification settings - Fork 3
/
ConfigAggregatorItem.cs
71 lines (57 loc) · 2.14 KB
/
ConfigAggregatorItem.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
using System;
using System.Collections.Generic;
namespace TFSAggregator
{
public class ConfigAggregatorItem
{
public ConfigAggregatorItem()
{
SourceItems = new List<ConfigItemType>();
Mappings = new List<Mapping>();
Conditions = new List<Condition>();
}
/// <summary>
/// The name of the aggregation.
/// </summary>
public string Name { get; set; }
/// <summary>
/// The name of the work item type to apply this aggregation to.
/// </summary>
public string WorkItemType { get; set; }
/// <summary>
/// The type of link that we are using
/// (Currently only "self" is supported
/// </summary>
public ConfigLinkTypeEnum LinkType { get; set; }
/// <summary>
/// Field to be updated
/// </summary>
public ConfigItemType TargetItem { get; set; }
/// <summary>
/// Fields to get the data for the updating from
/// </summary>
public List<ConfigItemType> SourceItems { get; set; }
/// <summary>
/// Operation to perform on the Source Items before putting the aggregate in TargetItem
/// </summary>
public OperationEnum Operation { get; set; }
/// <summary>
/// Used to determine if the aggregation operation is numeric or not.
/// </summary>
public OperationTypeEnum OperationType { get; set; }
/// <summary>
/// Used to apply aggregations for non-numeric operations.
/// </summary>
public List<Mapping> Mappings { get; set; }
/// <summary>
/// List of conditions on the target.
/// For example you can only run the aggregation if date field's value has not past.
/// </summary>
public List<Condition> Conditions { get; set; }
/// <summary>
/// If LinkType is "Parent" then this indicates how many levels up should be looked.
/// (For example: 1 is the direct parent. 2 is the parent of the parent.)
/// </summary>
public int LinkLevel { get; set; }
}
}