The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events