Skip to content

Commit 201e860

Browse files
committed
consolidating examples
1 parent a5298f9 commit 201e860

File tree

4 files changed

+27
-12
lines changed

4 files changed

+27
-12
lines changed

docs/organizations/security/troubleshoot-permissions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ You're likely signed into Azure DevOps with an incorrect identity. Complete the
294294
- [Deleted work items](../../boards/backlogs/remove-delete-work-items.md#delete-work-items)
295295
- [Azure Boards Team Administrator permissions and access](../../boards/get-started/permissions-access-boards.md)
296296
- [Custom rules](../settings/work/custom-rules.md#add-a-custom-rule)
297-
- [Custom fields](../settings/work/custom-rules.md#restrict-modification-of-select-fields-based-on-a-user-or-group)
297+
- [Custom fields](../settings/work/rule-samples.md#restrict-modifications-wits)
298298
- [Custom backlogs and boards](../settings/work/customize-process-backlogs-boards.md)
299299
- [Custom controls](../settings/work/custom-controls-process.md)
300300

docs/organizations/settings/work/rule-samples.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ For the [On-premises XML process model](../../../reference/on-premises-xml-proce
8787
- Restrict who can create or modify a work item
8888
- Restrict who can create specific work item types, such as Epics or Features
8989

90-
For example, you can restrict modification of work items by adding a rule to the work item type, usually within the **WORKFLOW** section. To learn more, see [Rules and rule evaluation, User or group membership rule restrictions](rule-reference.md#apply-ignore).
90+
For example, you can restrict modification of work items by adding a rule to the work item type, usually within the **WORKFLOW** section.
9191

92-
You restrict access to work tracking objects in one of two ways:
93-
- [Set a condition field rule](../settings/work/rule-reference.md), [a condition-based field rule](../../../reference/xml/assign-conditional-based-values-and-rules.md) or a combination of the two that applies to a group. You can restrict changes from being made to a field by specifying a qualifying rule and making it apply for a specific group. Conditional rules can include **CANNOTLOSEVALUE**, **EMPTY**, **FROZEN**, **NOTSAMEAS**, **READONLY**, and **REQUIRED** elements.
92+
You restrict access to work tracking objects in one of two ways:
93+
- [Set a condition field rule](rule-reference.md), [a condition-based field rule](../../../reference/xml/assign-conditional-based-values-and-rules.md) or a combination of the two that applies to a group. You can restrict changes from being made to a field by specifying a qualifying rule and making it apply for a specific group. Conditional rules can include **CANNOTLOSEVALUE**, **EMPTY**, **FROZEN**, **NOTSAMEAS**, **READONLY**, and **REQUIRED** elements.
9494
- By [adding WITs to the Hidden Categories group](../../../reference/xml/use-categories-to-group-work-item-types.md), you can prevent the majority of project contributors from creating them. You [can create a hyperlink to a template](../../../boards/backlogs/work-item-template.md) that opens the work item form and share that link with those team members who you do want to create them.
9595

9696
---
@@ -167,6 +167,7 @@ TBD
167167
> </FIELD>
168168
> ```
169169
170+
---
170171
171172
<a name="fields"></a>
172173

docs/reference/xml/assign-conditional-based-values-and-rules.md

+17-7
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ Field conditions are additional elements that you list inside a `FIELD` (Definit
3636
> The value attribute is case-insensitive. Therefore, if the field reference name holds "YYY", matches include the values "yyy" and "YYY".
3737
3838
<a name="Syntax"></a>
39+
3940
## Syntax structure for conditional elements
40-
The following table describes conditional rules that you can specify as child elements of the `FIELD` (Definition) element or `FIELD` (Workflow) element. These elements accept one or more of the following attributes:
41+
42+
The following table describes conditional rules that you can specify as child elements of the `FIELD` (Definition) element or `FIELD` (Workflow) element. These elements accept one or more of the following attributes:
4143
4244
- `field`: A string that describes the field. Must contain 1 to 255 characters.
4345
- `value`: When the specified field has this value, the rules in the `WHEN` and `WHENNOT` elements are applied to the current field.
@@ -151,8 +153,10 @@ Field conditions are additional elements that you list inside a `FIELD` (Definit
151153
152154
153155
<a name="DependentRequired"></a>
156+
154157
## Define a dependent required field
155-
You can specify that a field is required only when another field contains a specific value. In the following example, when a customer reports a bug, a customer severity must be specified. If the bug was not reported by a customer, a customer severity is not required.
158+
159+
You can specify that a field is required only when another field contains a specific value. In the following example, when a customer reports a bug, a customer severity must be specified. If the bug was not reported by a customer, a customer severity is not required.
156160
157161
> [!div class="tabbedCodeSnippets"]
158162
> ```XML
@@ -173,7 +177,8 @@ Field conditions are additional elements that you list inside a `FIELD` (Definit
173177
<a name="DependentPickList"></a>
174178
175179
## Define a conditional pick list
176-
The following example demonstrates a conditional pick list in which the allowed values for the Problem Type field are limited, based on whether the value of the ProblemCharacteristic field is set to Documentation.
180+
181+
The following example demonstrates a conditional pick list in which the allowed values for the Problem Type field are limited, based on whether the value of the ProblemCharacteristic field is set to Documentation.
177182
178183
> [!div class="tabbedCodeSnippets"]
179184
> ```XML
@@ -189,8 +194,10 @@ Field conditions are additional elements that you list inside a `FIELD` (Definit
189194
> ```
190195
191196
<a name="WhenChanged"></a>
197+
192198
## Define a field when the user changes another field (WHENCHANGED)
193-
In the following example, when a user changes the value of the MyCorp.State field, the MyCorp.StateDate field is set to the current date and time, as the server clock shows.
199+
200+
In the following example, when a user changes the value of the MyCorp.State field, the MyCorp.StateDate field is set to the current date and time, as the server clock shows.
194201
195202
> [!div class="tabbedCodeSnippets"]
196203
> ```XML
@@ -213,9 +220,12 @@ Field conditions are additional elements that you list inside a `FIELD` (Definit
213220
> </FIELD>
214221
> ```
215222
> <a name="WhenNotChanged"></a>
216-
> ## Define a field value based on a user not modifying a field (WHENNOTCHANGED)
217-
> In the following example, when a user does not change the value of the MyCorp.State field, the MyCorp.StateDate field becomes read-only.
218-
>
223+
224+
## Define a field value based on a user not modifying a field (WHENNOTCHANGED)
225+
226+
In the following example, when a user does not change the value of the MyCorp.State field, the MyCorp.StateDate field becomes read-only.
227+
228+
219229
> [!div class="tabbedCodeSnippets"]
220230
> ```XML
221231
> <FIELD refname="MyCorp.StateDate" name="Date Of Last State Change" type="DateTime">

docs/reference/xml/change-workflow-wit.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ You can define rules that update fields whenever the following events occur:
247247
The following examples show some of the rules that are applied to system fields in the process template for MSF Agile Software Development.
248248

249249
<a name="DefineField"></a>
250+
250251
### Change the value of a field when the state changes
252+
251253
When the value of the **State** field for a work item is set to Active and the work item is saved, the values of the **Activated By** and **Assigned To** fields are automatically set to the name of the current user. That user must be a member of the Team Foundation Server Valid Users group. The value of the **Activated Date** field is also set automatically. The following example shows the elements that enforce this rule:
252254

253255
```xml
@@ -269,8 +271,10 @@ You can define rules that update fields whenever the following events occur:
269271
```
270272

271273
<a name="ClearField"></a>
274+
272275
### Clear the value of a field when the value of another field changes
273-
When the value of the **State** field for a work item is set to Active and the work item is saved, the Closed Date and Closed By fields are automatically set to null and made read-only if you use the `EMPTY` element, as the following example shows.
276+
277+
When the value of the **State** field for a work item is set to Active and the work item is saved, the Closed Date and Closed By fields are automatically set to null and made read-only if you use the `EMPTY` element, as the following example shows.
274278

275279
```xml
276280
<STATE value="Active">

0 commit comments

Comments
 (0)