Install the Thready app to make sure that your threads have a meaningful name.


Then use the following scripts : 

https://bitbucket.org/atlassianlabs/atlassian-support/src/master/