Hello, I have a script that runs when a JIRA button is pressed. I wanted to use threads to optimize the script but it gives me problems if I put in the threads the JQLs queries and loops, is there any problem with that? What alternative do we have to use threads?
Thank you very much
Example:
Thread.start{
def historicalCommitmentSP = []
resultsSPStartSprint.results.each { result ->
def issueStartSprint = issueManager.getIssueObject(result.id)
spStartSprint = (issueStartSprint.getCustomFieldValue(puntosHistoria) ?: 0) as double
}