Add work_item_iid to requirement update mutation
What does this MR do and why?
Add work_item_iid to requirement update mutation. Since we are removing legacy iid, we'll need to ensure the work item iid is available for this mutation.
How to set up and validate locally
- Find or create a requirement in a project.
- Use the following query to find the relevant IID:
query {
project(fullPath: "Flightjs/Flight") {
requirements(first: 1) {
nodes {
iid
workItemIid
title
}
}
}
}
- Use that work item iid (ensure it's different than the requirement iid for testing purposes)
mutation {
updateRequirement(input: { projectPath: "Flightjs/Flight", workItemIid: "47", title: "new title" }) {
requirement {
title
}
errors
}
}
- Just to make sure, retrieve the same requirement again
query {
project(fullPath: "Flightjs/Flight") {
requirements(first: 1) {
nodes {
iid
workItemIid
title
}
}
}
}
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 #387480 (closed)
Edited by charlie ablett