Azure / Azure/azure-devops-cli-extension

[Feature Request] Add possibility to remove work-item links to commits/repos

Open
#1,297 0 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

It is not possible to remove links to e.g. Commits with the command `az boards work-item relation remove`.
Seems like this command aims on removing relations with other work items, but not relations of the type `ArtifactLink`.

Best solution would be to hand over the relation type and the value of WorkItemsJSON["relations"][...]["attributes"]["id"] as an extra (optional) argument.
Very best solution would be to add optional removal filters such as "remove all relations to this repo" or "remove all relations to this commit", but its maybe overloaded.

Also discussed in [This SOF thread](https://stackoverflow.com/questions/73309758/remove-relation-between-azure-devops-work-items-and-commits-programmatically)

Additional Information:
This is an example JSON node to remove:
```
"relations" : [
{
"attributes": {
"authorizedDate": "2018-04-14T13:51:14.53Z",
"id": 35***,
"name": "Fixed in Commit",
"resourceCreatedDate": "2018-04-14T13:51:14.53Z",
"resourceModifiedDate": "2018-04-14T13:51:14.53Z",
"revisedDate": "9999-01-01T00:00:00Z"
},
"rel": "ArtifactLink",
"url": "vstfs:///Git/Commit/<.......>"
}
]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.