-
-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
Description
I created a script that called a WebHook function (API) that met the days of the request fields.
Unfortunately when the submit function is finished, the info is not updated in the display view, how to do?
Script :
$(function () {
$('#issue-form').submit(function () {
const parentIssueId = ViewCustomize.context.issue.id;
const StatutId = $('#issue_status_id').val();
const IssueDemandeId = $('#issue_custom_field_values_10').val();
if (StatutId !== '1' && IssueDemandeId !== null) {
return $.ajax({
type: 'POST',
url:
'https://XXXXXXXX.XXX',
data: { issue: parentIssueId },
dataType: 'html',
success: function (data) {
location.reload();
},
});
}
});
});
Thanks !