A mutation to update an existing Milestone on a specific Roadmap based on milestoneID.
A Milestone can only have a single date. It cannot include dates ranges (Start and End Dates) or a bucket time.
Note that the updateMilestone call will only modify fields which are explicitly specified in the call’s arguments. Fields not specified in the arguments in the API call will retain their existing values.
Sample Mutation
// Update milestone mutation
mutation {
updateMilestone (
milestoneID: "5e4dd01a930df2f65c39a723"
summary: "Boxing Day Event (50% off)"
description: "Boxing Day Door Crashers. Everything on the store is 50% off"
fields : [{
id : "5e4d7d53caec436c465953bc"
value : "Merchandising"
}]
){
id
summary
date
description
lastSaved
roadmap {
id
title
fiscalEndMonth
}
fields (limit: 10, offset: 0) {
page {
...on ItemField {
fieldID
fieldName
}
}
}
}
}
Sample Response
// Update milestone mutation successful result
{
"data": {
"updateMilestone": {
"id": "5e4dd01a930df2f65c39a723",
"summary": "Boxing Day Event (50% off)",
"date": "2020-12-26",
"description": "Boxing Day Door Crashers. Everything on the store is 50% off",
"lastSaved": 1582216026297,
"roadmap": {
"id": "5e4d7d53caec436c46595378",
"title": "Ecommerce Roadmap",
"fiscalEndMonth": "December"
},
"fields": {
"page": [
{
"fieldID": "5e45e4bb8bc5675dc500a37e",
"fieldName": "Milestone Type"
},
{
"fieldID": "5e4d7d53caec436c465953bc",
"fieldName": "Theme (Ecommerce Roadmap)"
},
{
"fieldID": "5e4d7d53caec436c465953cd",
"fieldName": "Owner (Ecommerce Roadmap)"
}
]
}
}
}
}