Jira plugin work differently when machine/environment change,.

Leena Prism March 21, 2018

on developer environment machine jira plugin smoothly run , but when i tried to run same plugin on other machine (which is not having developer environment(atlassian sdk)). I got 404 error. 

here I am adding log :

batch.js?agile_global_admin_condition=true&healthcheck-resources=true&is-server-instance=true&is-system-admin=true&jag=true&jaguser=true&locale=en-US&nps-acknowledged=true:9

GET  http://localhost:8080/jira/rest/pde/1.0/globalValues?_=1503663018720 404 ()

XMLHttpRequest.send @ batch.js?agile_global_admin_condition=true&healthcheck-resources=true&is-server-instance=true&is-system-admin=true&jag=true&jaguser=true&locale=en-US&nps-acknowledged=true:9

getGlobalSetting @ updateGlobalSetting?message=success:580

(anonymous) @ updateGlobalSetting?message=success:583

 

and My source code is :

var pluginDataStorageUrl = "/jira/rest/pde/1.0/";
var userNamePluginUrl = pluginDataStorageUrl + "globalValues";
console.log("globalparam----------",userNamePluginUrl);
// getting global setting from plugin-data-storage +"?_=1503663018720"
function getGlobalSetting() {
var xhttp = new XMLHttpRequest();

xhttp.open("GET",userNamePluginUrl, true);
xhttp.setRequestHeader("Content-Type","application/json; charset=utf8");
xhttp.onreadystatechange = function() {

if (this.readyState == 4 && this.status == 200) {
document.getElementById("plugininfo").style.display = "block";
var globalData = JSON.parse(this.responseText);
console.log("--globalData-----",globalData);

$("#cloudurl").val(globalData.cloudurl);
$("#username").val(globalData.username);
$("#password").val(globalData.password);
$("#accessCode").val(globalData.accessCode);
$("#linkFormat").val(globalData.linkFormat);

$('#urlspan').html(globalData.cloudurl);
$('#userspan').html(globalData.username);
$('#codespan').html(globalData.accessCode);
$('#passspan').html(globalData.password);
$('#linkspan').html(globalData.linkFormat);
}
else if(this.readyState == 4 && this.status == 404){
document.getElementById("plugininfo").style.display = "none";
}
}

xhttp.send();
}

 

1 answer

0 votes
Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 22, 2018

@Leena Prismwhich plugin are you having this issue with?

Leena Prism March 22, 2018

jira plugin which is design to integrate with topteam cloud and read data from topteam cloud to jira.

Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 23, 2018

@Leena PrismAre you a jIRA Cloud user or JIRA Server? if server what version?

Leena Prism March 23, 2018

I m using Jira server of version 7.2.2

Leena Prism March 23, 2018

JIRA Server v7.2.2

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2018

The error means that the page, which you request in your code, can not be reached from the other machine. Kindly make sure that you can access the link from that machine.

Suggest an answer

Log in or Sign up to answer