I have created a rest api to access an issue in JIRA. If I edit value of a field and save it using a button click, how to update the new value in that corresponding issue replacing the old value?
I have viewed the following links regarding editing and updating issues, but do not have idea how to access them.
1) Editing issue
2) Updating issue
Have added a sample code using PUT in request as follows,
AP.require(['request'], function(request) {
request({
url: 'https://mysite.atlassian.net/rest/api/2/issue/XYZ-5',
type: 'PUT',
data: {
"fields": {"assignee":{"name":"harry"}}
},
success: function(response) {
alert("success");
document.location.reload();
},
error: function (response) {
alert('fail... ');
}
});
});But I get an error 403 - as no permission to access.
Can anyone help me with a basic example for updating values in an issue?