I am using a simple SIL and script, but it can't update the field.
console log shows "success!!" and there is no any error log, but the field didn't update.
image2016-5-10 22:24:29.png
<button type="button" onclick="get()">click me</button> <script type="text/javascript"> function get(){ AJS.$.ajax({ type: 'GET', url: 'http://localhost:8080/rest/keplerrominfo/commons/1.0/rungadget/getscript', dataType: 'json', data: 'scriptPath: "C:\Program Files\Atlassian\Application Data\JIRA\silprograms\1000"', success: function () {console.log("success!!");}, error: function () {console.log();} }); } </script>
image2016-5-10 22:7:34.png
Community moderators have prevented the ability to post new answers.
I'm pretty sure you're looking for Blitz Actions or Kepler Custom Fields Pro plugins.
Your approach is not recommended, you're having a couple of hard-coded values like URL or scriptPath. Also, the data parameter is not a valid JSON. SIL is a powerful tool. So are Kepler's plugins. Because they are designed for specific tasks, like yours. Use the plugins instead
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.