Jira version 8.13.7 is my version and I'm running into an issue where none of my pages that require plugins are functioning.
More specifically, when trying to raise a request, it gives me the oops 500 error and that's as far as it goes. Furthermore, when I try to go into the project settings of any of my pages, the page just hangs there and doesn't go anywhere else.
I've turned on debugging for "plugins" and can't find a whole lot that catches the eye to tell me. I'm no expert by any means, so if I'm asking the wrong questions, please let me know and I can adjust.
Using Jquery you can send ajax request to the REST service and then populate your forms :
Jquery can be used in javascript under Jira with this :
ASJ.$
For example, if your form is (the user put "john" in the text input)
<input type="text" id="myvaluetosend" value="john"/>
<input type="text" id="resultOfRESTCall"/>
to send "john" to the webservice and display the result in the text input with id "resultOfRESTCall"
you can send a request :
AJS.$.get('http..URL_OF_REST_SERVICE',
{"name-of-rest-parameter":AJS.$("#myvaluetosend").val()},
function (data)
{
// Here is where I can manage the data sended by the REST service
// Assuming the JSON resultsended by the rest service is {"result":"hi john"}
// Populate the form with the result:
AJS.$("#resultOfRESTCall".val(data.result));
}
);
I only use this on Gadgets for the dashboard, I assume it works on plugins...
Regards,
Anthony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.