I am using ACE connect template.
The story point field for my jira project issues is customfield_10040 my updateIssue function does not update the customfield_10040. but if i modify to update summary it does update. When i click on the button no flags shows.
my json scopes is set to admin. Here is my code:
function updateIssue() {
AP.request('/rest/api/3/issue/' + document.getElementById("issueKey").value, {
type: "PUT",
data: JSON.stringify({fields: {customfield_10040: document.getElementById("issueSummary").value}}
),
contentType: "application/json",
success: function (response) {
AP.flag.create({title: 'Success', body: "Issue updated", type: 'success'});
},
error: function (response) {
AP.flag.create({title: 'Error updating issue', body: response, type: 'error'});
},
});
}