|
| 1 | +--- |
| 2 | +external help file: AzureDevOpsPowerShell-help.xml |
| 3 | +Module Name: AzureDevOpsPowerShell |
| 4 | +online version: |
| 5 | +schema: 2.0.0 |
| 6 | +--- |
| 7 | + |
| 8 | +# New-AzDoWorkItem |
| 9 | + |
| 10 | +## SYNOPSIS |
| 11 | +Creates a new work item in Azure DevOps. |
| 12 | + |
| 13 | +## SYNTAX |
| 14 | + |
| 15 | +``` |
| 16 | +New-AzDoWorkItem [-CollectionUri] <String> [-ProjectName] <String> [-WorkItemType] <String> |
| 17 | +[-Title] <String> [-Description] <String> [-AssignedTo] <String> [-AreaPath] <String> [-IterationPath] <String> |
| 18 | +[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>] |
| 19 | +``` |
| 20 | + |
| 21 | +## DESCRIPTION |
| 22 | +Creates a new work item of the specified type in Azure DevOps. |
| 23 | + |
| 24 | +## EXAMPLES |
| 25 | + |
| 26 | +### EXAMPLE 1 |
| 27 | +``` |
| 28 | +$Params = @{ |
| 29 | + CollectionUri = "https://dev.azure.com/contoso" |
| 30 | + ProjectName = "Project1" |
| 31 | + WorkItemType = "Bug" |
| 32 | + Title = "Sample Bug" |
| 33 | + Description = "This is a sample bug description." |
| 34 | + AssignedTo = "user@contoso.com" |
| 35 | + AreaPath = "Project1\\Area1" |
| 36 | + IterationPath = "Project1\\Iteration1" |
| 37 | +} |
| 38 | +New-AzDoWorkItem @Params |
| 39 | +``` |
| 40 | +This command creates a new work item of type "Bug" with the specified details in the specified project. |
| 41 | + |
| 42 | +## PARAMETERS |
| 43 | + |
| 44 | +### -CollectionUri |
| 45 | +The URI of the Azure DevOps organization. |
| 46 | + |
| 47 | +```yaml |
| 48 | +Type: String |
| 49 | +Parameter Sets: (All) |
| 50 | +Aliases: |
| 51 | + |
| 52 | +Required: True |
| 53 | +Position: Named |
| 54 | +Default value: None |
| 55 | +Accept pipeline input: True (ByPropertyName) |
| 56 | +Accept wildcard characters: False |
| 57 | +``` |
| 58 | +
|
| 59 | +### -ProjectName |
| 60 | +The name of the project where the work item will be created. |
| 61 | +
|
| 62 | +```yaml |
| 63 | +Type: String |
| 64 | +Parameter Sets: (All) |
| 65 | +Aliases: |
| 66 | + |
| 67 | +Required: True |
| 68 | +Position: Named |
| 69 | +Default value: None |
| 70 | +Accept pipeline input: True (ByPropertyName) |
| 71 | +Accept wildcard characters: False |
| 72 | +``` |
| 73 | +
|
| 74 | +### -WorkItemType |
| 75 | +The type of the work item to be created (e.g., Bug, Task, User Story). |
| 76 | +
|
| 77 | +```yaml |
| 78 | +Type: String |
| 79 | +Parameter Sets: (All) |
| 80 | +Aliases: |
| 81 | + |
| 82 | +Required: True |
| 83 | +Position: Named |
| 84 | +Default value: None |
| 85 | +Accept pipeline input: True (ByPropertyName, ByValue) |
| 86 | +Accept wildcard characters: False |
| 87 | +``` |
| 88 | +
|
| 89 | +### -Title |
| 90 | +The title of the work item. |
| 91 | +
|
| 92 | +```yaml |
| 93 | +Type: String |
| 94 | +Parameter Sets: (All) |
| 95 | +Aliases: |
| 96 | + |
| 97 | +Required: True |
| 98 | +Position: Named |
| 99 | +Default value: None |
| 100 | +Accept pipeline input: True (ByPropertyName, ByValue) |
| 101 | +Accept wildcard characters: False |
| 102 | +``` |
| 103 | +
|
| 104 | +### -Description |
| 105 | +The description of the work item. |
| 106 | +
|
| 107 | +```yaml |
| 108 | +Type: String |
| 109 | +Parameter Sets: (All) |
| 110 | +Aliases: |
| 111 | + |
| 112 | +Required: True |
| 113 | +Position: Named |
| 114 | +Default value: None |
| 115 | +Accept pipeline input: True (ByPropertyName, ByValue) |
| 116 | +Accept wildcard characters: False |
| 117 | +``` |
| 118 | +
|
| 119 | +### -AssignedTo |
| 120 | +The user to whom the work item is assigned. |
| 121 | +
|
| 122 | +```yaml |
| 123 | +Type: String |
| 124 | +Parameter Sets: (All) |
| 125 | +Aliases: |
| 126 | + |
| 127 | +Required: False |
| 128 | +Position: Named |
| 129 | +Default value: None |
| 130 | +Accept pipeline input: True (ByPropertyName, ByValue) |
| 131 | +Accept wildcard characters: False |
| 132 | +``` |
| 133 | +
|
| 134 | +### -AreaPath |
| 135 | +The area path of the work item. |
| 136 | +
|
| 137 | +```yaml |
| 138 | +Type: String |
| 139 | +Parameter Sets: (All) |
| 140 | +Aliases: |
| 141 | + |
| 142 | +Required: False |
| 143 | +Position: Named |
| 144 | +Default value: None |
| 145 | +Accept pipeline input: True (ByPropertyName, ByValue) |
| 146 | +Accept wildcard characters: False |
| 147 | +``` |
| 148 | +
|
| 149 | +### -IterationPath |
| 150 | +The iteration path of the work item. |
| 151 | +
|
| 152 | +```yaml |
| 153 | +Type: String |
| 154 | +Parameter Sets: (All) |
| 155 | +Aliases: |
| 156 | + |
| 157 | +Required: False |
| 158 | +Position: Named |
| 159 | +Default value: None |
| 160 | +Accept pipeline input: True (ByPropertyName, ByValue) |
| 161 | +Accept wildcard characters: False |
| 162 | +``` |
| 163 | +
|
| 164 | +### -ProgressAction |
| 165 | +Determines how the cmdlet responds to progress updates. |
| 166 | +
|
| 167 | +```yaml |
| 168 | +Type: ActionPreference |
| 169 | +Parameter Sets: (All) |
| 170 | +Aliases: |
| 171 | + |
| 172 | +Required: False |
| 173 | +Position: Named |
| 174 | +Default value: None |
| 175 | +Accept pipeline input: False |
| 176 | +Accept wildcard characters: False |
| 177 | +``` |
| 178 | +
|
| 179 | +### -WhatIf |
| 180 | +Shows what would happen if the cmdlet runs. The cmdlet is not run. |
| 181 | +
|
| 182 | +```yaml |
| 183 | +Type: SwitchParameter |
| 184 | +Parameter Sets: (All) |
| 185 | +Aliases: wi |
| 186 | + |
| 187 | +Required: False |
| 188 | +Position: Named |
| 189 | +Default value: None |
| 190 | +Accept pipeline input: False |
| 191 | +Accept wildcard characters: False |
| 192 | +``` |
| 193 | +
|
| 194 | +### -Confirm |
| 195 | +Prompts you for confirmation before running the cmdlet. |
| 196 | +
|
| 197 | +```yaml |
| 198 | +Type: SwitchParameter |
| 199 | +Parameter Sets: (All) |
| 200 | +Aliases: cf |
| 201 | + |
| 202 | +Required: False |
| 203 | +Position: Named |
| 204 | +Default value: None |
| 205 | +Accept pipeline input: False |
| 206 | +Accept wildcard characters: False |
| 207 | +``` |
| 208 | +
|
| 209 | +### <CommonParameters> |
| 210 | +This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVariable`, `-InformationAction`, `-InformationVariable`, `-OutVariable`, `-OutBuffer`, `-PipelineVariable`, `-Verbose`, `-WarningAction`, and `-WarningVariable`. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216). |
| 211 | + |
| 212 | +## INPUTS |
| 213 | + |
| 214 | +### System.String |
| 215 | + |
| 216 | +## OUTPUTS |
| 217 | + |
| 218 | +### System.Object |
0 commit comments