Why does creation of subtasks in automated transition takes ages

I have an automation rule that transitions an issue when all linked issues are resolved. In the transition of the parent issue, I create a couple of subtasks as well as a couple of cloned-and-linked issues in other projects. 

If I perform the transition manually it takes like 50 seconds which feels OK for me. However when the automation rule performs the transition the operation can take about 5-10 minutes. And during that period it seems like all issue views and boards that show the issue cannot be loaded. 

Can anyone answer why there is such a performance issue when doing the same operation using automation? And if there is anything I can do about it?

2 answers

0 vote

It sounds like your code is doing a vast amount of work or your server is vastly underpowered - 50 seconds is a ridiculous amount of time for a transition.  Could you explain what you have set up in more detail?

I suppose the reason for taking so much time as 50 seconds is that I create 5 sub-tasks and 3 clone-and-links. This is however not my main problem. 

However I see now it seems like the automated transition has created sort of "ghost" issues. Issues that should have been a sub-task to the parent issue is instead a normal issue. I can see them in the Agile board, but it is not possible to click on them since JIRA tells med they don't exist. In some way they are both created and not created. 

Your code is very very broken if it's doing this sort of thing. You should really remove it, move it to a test system and fix it.

You may be impacted by a critical JIRA issue that impacts automation like this: JRA-40942.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

182 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you