Hi,
I have a workflow transition and there is a groovy script in its post function. This script should create a new issue under different project and also create a link for the issue. What my problem is that I get an error like this:
The JIRA server could not be contacted. This may be a temporary glitch or the server may be down.
Close this dialog and press refresh in your browser
This is from the log file:
Exception in thread "ajp-bio-8009-exec-4626" java.lang.StackOverflowError
Is there any suggestion?
Read your log file to see what might be causing that (read above and below it).
A common cause of a Stack Overflow is looping or recursive code. Try removing the script and checking that the basics work, then re-enable parts of your script one at a time until the error happens again. At least you'll know where the fault is.
Thanks for your quick reply Nic. I guess there is a problem with this line.
Map<String,Object> newIssueParams = ["issue":newIssue] as Map<String,Object> Issue newIssueObj = issueManager.createIssueObject(currentUserObj, newIssueParams)
I use these lines in subtask creation but I am not sure if it is ok when trying to create a new issue under different project as well. Do you have any idea?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make sure the this post function is NOT on the create issue transition !!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, good point - the "new issue" line will fail if this is on the "create issue" transition - you need to have the main issue in existence before you can execute other creates.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.