I am facing a challenge with this particular object:
const a = {
elementErrors: {
errorMessages: [],
errors: {
project: "Issues with this Issue Type must be created in the same project as the parent."
}
},
issueKey: "JP-55",
status: 400
}
It is my goal to modify it in such a way that the nested project property incorporates the issueKey property at the end of the string. Essentially, it should read as
"Issues with this Issue Type must be created in the same project as the parent (JP-55)."
Despite my efforts and attempts, I have not yet been able to devise a solution.
The desired outcome is depicted below:
const a = {
elementErrors: {
errorMessages: [],
errors: {
project: "Issues with this Issue Type must be created in the same project as the parent (JP-55)."
}
},
issueKey: "JP-55",
status: 400
}
Thank you for your assistance