Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,047
Community Members
 
Community Events
168
Community Groups

Error- Can't get old thread name when using threads in script runner Listener

Hi,

I'm using script listener to run some action on an updated issue, the actions can be quite heavy and I'm using threads to prevent the users from waiting.

In some cases I see this error in the logs:

'Can't get old thread name'

Any idea why it happens?

My code is looking like this:

Thread.start({
try {
xxxxxx
someFunction(issue)


}
catch (Exception ex) {
log.error("error found+" error: "+ex.toString());
}
})



void someFunction(Issue issue) {
Thread.start({
xxxxxxx
})
}

thanks

Dar

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

184 views 1 6
Read article

Atlassian Community Events