Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to Update story point using the Request Javascript module?

FYP Y369 September 20, 2023

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'});
},
});
}

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events