I got one logic, but I am failing with the looping part so can anyone help me with that, here is the code
#set($forumList = $core_v2_forum.List( )
#foreach ($forum in $forumList)
#set($forumThread = $core_v2_forumThread.List("%{ForumId = $forum.Id, PageIndex = 0, PageSize = 1, SortBy = 'Date', SortOrder = 'Ascending'}"))
#foreach ($forumThreadResponse in $forumThread)
#set($forumReplyResponse = $core_v2_forumReply.List($forumThreadResponse.Id, "%{ ContentIds : $forumThreadResponse.ContentId, ForumId = $forumThreadResponse.ForumId, PageIndex = 0, PageSize = 1 }"))
$forumReplyResponse.Date
#end
#end