Files
onefuzz/contrib/onefuzz-job-azure-devops-pipeline/ado-work-items.json
Kanan B cad8e0e601 Support custom ado fields that mark work items as duplicate (#3467)
* Add field to ado config for checking duplicate work items

* Make duplicate fields nullable and add it to python models

* Update broken tests

* Update docs to include new ado_duplicate_fields property
2023-10-03 11:51:39 -07:00

30 lines
1000 B
JSON

{
"config": {
"base_url": "https://dev.azure.com/INSERT_YOUR_ORG_HERE",
"auth_token": "INSERT_PAT_HERE",
"project": "INSERT_YOUR_PROJECT_HERE",
"type": "Bug",
"unique_fields": [
"System.Title",
"System.AreaPath"
],
"comment": "<br> This is my call stack: <ul> {% for item in report.call_stack %} <li> {{ item }} </li> {% endfor %} </ul> Repro Command: <br> <pre> {{ repro_cmd }} </pre>",
"ado_fields": {
"System.AreaPath": "OneFuzz-Ado-Integration",
"System.Title": "{{report.task_id}}"
},
"ado_duplicate_fields": {
"System.Reason": "My custom value that means a work item is a duplicate",
"Custom.Work.Item.Field": "My custom value that means a work item is a duplicate"
},
"on_duplicate": {
"increment": [],
"comment": "DUP {{report.input_sha256}} <br> Repro Command: <br> <pre> {{ repro_cmd }} </pre> ",
"set_state": {
"Resolved": "Active"
},
"ado_fields": {}
}
}
}