Hi!
I have Jira Server runnig as service on my server. Scriptrunner documentation says modify your setenv.sh (or .bat) in order to add resource dir. For service-type installation I've guessed I had to edit service properties and added same line into Java options in server properties window:
Script file contents:
(function ($) {
$(function () {
AJS.dialog2.on("show", function (e) {
var targetId = e.target.id;
if (targetId == "sr-dialog") {
var someDialog = AJS.dialog2(e.target);
$(e.target).find("#dialog-ok-button").click(function (e) {
e.preventDefault();
someDialog.hide();
someDialog.remove();
});
// etc
}
});
});
})(AJS.$);
(also from documentation page)
Install WebResource page looks ok:
But nothing happens when I click OK button in that dialog window?
What might be the problem here?
From what I can see you have set it up correctly. Have you checked for errors in the browser console? :)
Browser console is empty. No reactions on clicking ok-button
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also now (for some reason) dialog window does not show up anymore. Instead there is browser console error:
Uncaught TypeError: Cannot read property 'hasAttribute' of undefined
at String.<anonymous> (batch.js?baseurl-check-resources=true&healthcheck-resources=true&jira.create.linked.issue=true&locale=en-US&richediton=true&user-logged-in=true:4508)
at Function.each (batch.js?locale=en-US:43)
at batch.js?baseurl-check-resources=true&healthcheck-resources=true&jira.create.linked.issue=true&locale=en-US&richediton=true&user-logged-in=true:4508
at new r (batch.js?baseurl-check-resources=true&healthcheck-resources=true&jira.create.linked.issue=true&locale=en-US&richediton=true&user-logged-in=true:4508)
at Object.dialog2 (batch.js?locale=en-US:319)
at Object.<anonymous> (batch.js?baseurl-check-resources=true&healthcheck-resources=true&jira.create.linked.issue=true&locale=en-US&richediton=true&user-logged-in=true:76100)
at c (batch.js?locale=en-US:54)
at Object.fireWith [as resolveWith] (batch.js?locale=en-US:54)
at u (batch.js?locale=en-US:54)
at XMLHttpRequest.<anonymous> (batch.js?locale=en-US:54)
(anonymous) @ batch.js?baseurl-check-resources=true&healthcheck-resources=true&jira.create.linked.issue=true&locale=en-US&richediton=true&user-logged-in=true:4508
each @ batch.js?locale=en-US:43
(anonymous) @ batch.js?baseurl-check-resources=true&healthcheck-resources=true&jira.create.linked.issue=true&locale=en-US&richediton=true&user-logged-in=true:4508
r @ batch.js?baseurl-check-resources=true&healthcheck-resources=true&jira.create.linked.issue=true&locale=en-US&richediton=true&user-logged-in=true:4508
(anonymous) @ batch.js?locale=en-US:319
(anonymous) @ batch.js?baseurl-check-resources=true&healthcheck-resources=true&jira.create.linked.issue=true&locale=en-US&richediton=true&user-logged-in=true:76100
c @ batch.js?locale=en-US:54
fireWith @ batch.js?locale=en-US:54
u @ batch.js?locale=en-US:54
(anonymous) @ batch.js?locale=en-US:54
load (async)
send @ batch.js?locale=en-US:54
ajax @ batch.js?locale=en-US:54
u @ batch.js?baseurl-check-resources=true&healthcheck-resources=true&jira.create.linked.issue=true&locale=en-US&richediton=true&user-logged-in=true:76100
(anonymous) @ batch.js?baseurl-check-resources=true&healthcheck-resources=true&jira.create.linked.issue=true&locale=en-US&richediton=true&user-logged-in=true:76100
dispatch @ batch.js?locale=en-US:54
v.handle @ batch.js?locale=en-US:54
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.