Possible bug when creating multiple tasks under epic during a transition
Hi,
I have a workflow that creates multiple tasks under epic (5-10 depending on the transition) during a transition. For some reason this task takes about minute to complete and JIRA gives me a message server not responding after about 20 seconds. However the task will run in the background and eventually gets completed ok.
This used to work faster and I never noticed before such a long time. Also this might not be a bug in JWT, but just to let you know if you have gotten similar tickets or noticed any similar issues before. Thanks.
Comments (7)
-
repo owner -
reporter Hi,
JIRA is version 7.3.8. Here's my configuration:
-
repo owner Hi @arttuhakanen,
Your configuration seems pretty simple. I don't find any reason for the delay you describe.
Do you have custom listeners implemented through other apps? Maybe, there are some listeners being triggered by the creation of the tasks.
Can you provide your server's log file? You can send it to support@workflowarts.com.
-
repo owner Hi @fcarmario,
After having examined your log file it seems that you are invoking "Create issues and subtasks" post-function recursively in your workflows, i.e., in the Create Issue transition of the issues you are creating you are also invoking "Create issues and subtasks" post-function.
You might be entering in an infinite loop of invocations to "Create issues and subtasks" post-function that ends when the server aborts the execution with an stack overflow error.
Please, attach an XML export of each workflow implied in this issue: epic and tasks you are creating through "Create issues and subtasks" post-function.
I recommend you to execute jira integrity checker to look for potential problems in your JIRA instance.
-
reporter Hi @fcarmario ,
I'll check out the XML exports asap for you.
So in the Create Issue transition, no "Create issues and subtasks" should be used? Better to create another transition after this state? Thanks!
-
repo owner Hi @arttuhakanen,
You can perfectly use "Create issues and subtasks" post-function in Create Issue transition. It's very usual to do it, but you should be careful not to create an infinite loops os issue creations.
For example, if you are creating issues using "Create issues and subtasks" in Create Issue transition, you never should select the same issue type as the issue type of the creator issue, i.e., you should create a task from Create Issue transition of a task, otherwise you will end up with an infinite loop of issue creations.
In reality you can, but you should limit the loop using conditional execution parameter of complex expression for seed generation. You should know very well what you are doing.
-
repo owner - changed status to resolved
Hi @arttuhakanen,
Can I close this issue?
- Log in to comment
Hi @arttuhakanen,
Please, attach a screenshot with the configuration of the "Create issues and subtasks" post-function you are using.
Which version of JIRA are you using?