File: markStaleWorkItem.md

package info (click to toggle)
azure-devops-cli-extension 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,680 kB
  • sloc: python: 160,797; xml: 198; sh: 61; makefile: 56
file content (17 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Mark Work Items as stale

## When to use

Work Items which are untouched for a very long time can be marked as stale using this script.

## How to use

### Script Mode

1. Invoke the Script with required params-

This command will add {Probot: Stale} tag to all the work itmes assigned to user "user@fabrikam.com" in <https://dev.azure.com/fabrikam> organization which are not changed in last 30 days

```cmd
.\markStaleWorkItem.ps1 -organization https://dev.azure.com/fabrikam -assignedTo user@fabrikam.com -daysUntilStale 30 -daysUntilClose 60
```