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

If you have a runaway Adaptavist script, how do you kill it?

Colin McDermott_GLiNTECH August 17, 2020

If you have an instance of jira and are running Adaptavist, and you have written a script that just keeps running. 

How do you kill that adaptavist script? 

4 answers

Suggest an answer

Log in or Sign up to answer
2 votes
tymaks
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 17, 2022

If you have any logs in the script that you want to kill then I have some workaround for you.

You can find the process name in the atlassian-jira.log file, in my case it was like

2022-11-17 16:30:50,229+0100 http-nio-8080-exec-40494 INFO ....

The "http-nio-8080-exec-40494" is the thread name. So, now you can do something like this in the Console:

Thread.getThreads().each {
   if (it.name == "http-nio-8080-exec-40456") {
      it.stop()
   }
}

It should stop the script.

1 vote
Katy Kelly
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.
August 18, 2020

Hi Colin, 

Currently you would have to restart Jira to kill a ScriptRunner script. There is a feature request for this here you can vote/follow: https://productsupport.adaptavist.com/browse/SRJIRA-3685

Kind regards,

Katy

Adaptavist Product Support 

0 votes
Jari Worsley August 18, 2020

<snip>removing duplicate

0 votes
Jari Worsley August 18, 2020

Not really enough detail for me to offer a detailed answer, but as a generic one...

if you are running one of our products either for you or one of your customers, and hitting a problem then I would always encourage you to raise a ticket with our support team.

See: https://productsupport.adaptavist.com/servicedesk/customer/portals

We've invested a lot in support the last few years, and have a lot of people that can help. We give better support to our solution partners (and Glintech is one). I see you are in Australia - we have people in a near timezone that can help as well.

Get the best out of what you have paid for and test our support team out!

TAGS
AUG Leaders

Atlassian Community Events