Commit 9f79e9a
authored
DOCS UPDATE: Modernize area and iteration maps how-to guide with current configuration format (#2874)
The how-to guide for creating area and iteration maps was significantly
outdated compared to the reference documentation. This update brings the
guide up to date with the current configuration schema and best
practices.
## Key Changes Made
### ✅ Updated Configuration Format
- Migrated from deprecated `IterationMaps`/`AreaMaps` dictionary format
to modern `Iterations.Mappings`/`Areas.Mappings` structured format
- Added clear examples of the new Match/Replacement property structure
- Maintained backward compatibility documentation while marking old
format as deprecated
### ✅ Enhanced Documentation Structure
- Added dedicated sections for Configuration Format, Regular
Expressions, and Mapping Patterns
- Reorganized content with better headings and logical flow
- Added comprehensive working examples users can copy and adapt
### ✅ Added Missing Critical Content
- **Important Warning**: Added prominent note that work items cannot be
migrated if Area/Iteration paths don't exist on target
- **Special Character Escaping**: Added detailed warnings about JSON and
regex escaping requirements
- **Filters Documentation**: Explained how to use Filters with glob
patterns
- **PrefixProjectToNodes Replacement**: Showed how to replace deprecated
option with explicit mappings
### ✅ Practical Examples Added
- Simple project rename with path preservation
- Project rename to root only (hierarchy flattening)
- Replacing deprecated PrefixProjectToNodes functionality
- Using Filters to control node migration
- Complete TfsNodeStructureToolOptions configuration example
### ✅ Better User Guidance
- Links to regex101.com for testing regular expressions
- Advice on terminating backslashes in patterns
- Clear explanation of back-references in replacements
- Cross-references to complete reference documentation
## Before vs After
**Before**: Used outdated dictionary format with minimal explanation
```json
"IterationMaps": {
"OldProject\\Iteration": "NewProject\\Sprint"
}
```
**After**: Uses modern structured format with comprehensive guidance
```json
"Iterations": {
"Mappings": [
{
"Match": "^OldProject\\\\(.*)$",
"Replacement": "NewProject\\$1"
}
]
}
```
The how-to guide now provides practical, actionable guidance that
matches the current tool capabilities and configuration schema exactly
as shown in the reference documentation.

Fixes #2873.
> [!WARNING]
>
> <details>
> <summary>Firewall rules blocked me from connecting to one or more
addresses</summary>
>
> #### I tried to connect to the following addresses, but was blocked by
firewall rules:
>
> - `esm.ubuntu.com`
> - Triggering command: `/usr/lib/apt/methods/https` (dns block)
>
> If you need me to access, download, or install something from one of
these locations, you can either:
>
> - Configure [Actions setup
steps](https://gh.io/copilot/actions-setup-steps) to set up my
environment, which run before the firewall is enabled
> - Add the appropriate URLs or hosts to my [firewall allow
list](https://gh.io/copilot/firewall-config)
>
> </details>
<!-- START COPILOT CODING AGENT TIPS -->
---
💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.File tree
2 files changed
+196
-19
lines changed- docs/content/docs/how-to/creating-iteration-and-area-maps
2 files changed
+196
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
Lines changed: 195 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
| 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 | + | |
19 | 46 | | |
20 | 47 | | |
21 | 48 | | |
| |||
26 | 53 | | |
27 | 54 | | |
28 | 55 | | |
29 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
30 | 59 | | |
31 | 60 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
36 | 76 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
40 | 88 | | |
41 | 89 | | |
42 | 90 | | |
43 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
44 | 94 | | |
45 | 95 | | |
46 | | - | |
47 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
48 | 103 | | |
49 | 104 | | |
50 | 105 | | |
51 | 106 | | |
52 | 107 | | |
| 108 | + | |
| 109 | + | |
53 | 110 | | |
54 | 111 | | |
55 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
56 | 142 | | |
57 | | - | |
| 143 | + | |
58 | 144 | | |
59 | 145 | | |
60 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
61 | 162 | | |
62 | 163 | | |
63 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
64 | 169 | | |
65 | 170 | | |
66 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
67 | 187 | | |
68 | 188 | | |
69 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
70 | 192 | | |
71 | | - | |
| 193 | + | |
72 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
73 | 214 | | |
74 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
75 | 249 | | |
| 250 | + | |
| 251 | + | |
0 commit comments