Add labels to work item widgets in GraphQL
What does this MR do and why?
Add labels widget to work item query, to allow fetching labels on a work item.
Like !91345 (merged), but for labels
Sample query:
query workItem($id: WorkItemID!) {
workItem(id: $id) {
...WorkItem
__typename
}
}
fragment WorkItem on WorkItem {
id
title
state
description
workItemType {
id
name
__typename
}
userPermissions {
deleteWorkItem
updateWorkItem
__typename
}
widgets {
... on WorkItemWidgetDescription {
type
description
descriptionHtml
__typename
}
... on WorkItemWidgetLabels {
type
labels {
nodes {
id
title
color
}
}
__typename
}
__typename
}
__typename
}
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to Add labels to a work item (#339756 - closed)
Edited by Simon Knox