I have developed JIRA java script plugin.we are suspecting GC error due to my java script plugin.
Can any tell me,Is my below script is correct syntax?
jQuery(document).ready(function($) {
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) {
callFunction();
});
callFunction();
function callFunction(){
$('#customfield_12720-1').click(function(){
MessageApprover = document.getElementById('customfield_12721');
notifyMsgApproval = document.getElementById('customfield_12722');
if(document.getElementById('customfield_12720-1').checked){
MessageApprover.value = AJS.params.loggedInUser;
notifyMsgApproval.value='Message Integration Change Security Group';
}
else{
MessageApprover.value ='';
}
});
$('#customfield_11013-1').click(function(){
ReqCompleteAprrover = document.getElementById('customfield_13103');
if(document.getElementById('customfield_11013-1').checked){
ReqCompleteAprrover.value = AJS.params.loggedInUser;
}
else{
ReqCompleteAprrover.value ='';
}
});
if($('#issue-workflow-transition-submit').val() =='Qualification Approval'){
epicQulificationApprover = document.getElementById('customfield_13006');
epicQulificationApprover.value = AJS.params.loggedInUser;
}
if($('#issue-workflow-transition-submit').val() =='Requirements Complete'){
epicRequirementsComplete = document.getElementById('customfield_10604');
epicRequirementsComplete.value = AJS.params.loggedInUser;
}
if($('#issue-workflow-transition-submit').val() =='Requirements Approval'){
epicRequirementsApproval = document.getElementById('customfield_13103');
epicRequirementsApproval.value = AJS.params.loggedInUser;
}
}
});
Best Regards,
Community moderators have prevented the ability to post new answers.
Does you script do any requests to the server? If no then it should not be a reason of GC errors.
Best bet is just to disable your addon and see if errors are still spawn.
I think we are not calling server, the above code only one source file in the plugin.
The GC error will coming every day 3 to 5 times, but not in exact intervals.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you do not call the server then JavaScript has nothing to do with GC errors. How did you add the JavaScript? Is part of your custom addon? Are there any server Java code in your addon?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Or.I have seen the log and suspecting the GC issue due to following Exception. 2015-12-01 07:38:44,525 http-bio-443-exec-153 ERROR anonymous 458x21543x1 - 172.30.14.78 /rpc/soap/jirasoapservice-v2 [axis.encoding.ser.BeanSerializer] Exception: java.lang.IllegalArgumentException: The char '0xb' after 'Hi . i did the Analysis and found.: there is a data miss match between Production DB and Prepod DB select * from tz_orgpreftype' is not a valid XML character. May to resolve this exception? Thanks for the help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To identify if the addon causes the problem just disable it. Concerning DB - restore the copy from the production.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, the plugin have some functionalities ,it will effect the users work. can we do in the week ends and check.? Concerning DB - restore the copy from the production.(not exactly getting)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nevermind about the DB restoring. I though you are staging environment and miss some data from the production database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.