I have implemented a rule such that when an issue of a certain type is created in a single project I run a JQL to find other issues in the project created by the same reporter within the last twelve weeks. Everything works correctly but it takes a really long time to run. I.e., one run took 30 minutes to link 35 issues. It even takes 15-30 seconds to link 4-5 issues. The net result is the rule quickly becomes throttled due to exceeding its 12 hour allotment (I know I can increase this but...).
I know the JQL takes less than a second so I don't think that's the problem. It's definitely related to how many issues will be linked.
Anyone have any similar experience or ideas on this?