Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SIL cannot update the ticket

Hsut May 10, 2016

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

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Silviu Burcea
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.
May 10, 2016

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 smile

TAGS
AUG Leaders

Atlassian Community Events