well then, lookie what I found:

API QuestLogPushQuest

Code:
local i = 0;
while (GetQuestLogTitle(i+1) ~= nil) do
 i = i + 1;
 local title, level, tag, header = GetQuestLogTitle(i);
 if (not header) then
  SelectQuestLogEntry(i);
  if (GetQuestLogPushable()) then
   QuestLogPushQuest();
   DEFAULT_CHAT_FRAME:AddMessage(string.format("Attempting to share %s [%d] with your group...", title, level));
   return;
  end
 end
end