API GetQuestLogTitle

Returns information about a quest in your quest log. title, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, questID, startEvent, displayQuestID, isOnMap, hasLocalPOI, isTask, isBounty, isStory, isHidden, isScaling = GetQuestLogTitle(questLogIndex)

Arguments

 * questLogIndex: Integer - The index of the quest you wish to get information about, between 1 and GetNumQuestLogEntries's first return value.

Returns

 * title : String - The title of the quest, or nil if the index is out of range.
 * level : Integer - The level of the quest.
 * suggestedGroup : Integer - If the quest is designed for more than one player, it is the number of players suggested to complete the quest. Otherwise, it is 0.
 * isHeader : Boolean - true if the entry is a header, false otherwise.
 * isCollapsed : Boolean - true if the entry is a collapsed header, false otherwise.
 * isComplete : Integer - 1 if the quest is completed, -1 if the quest is failed, nil otherwise.
 * frequency : Integer - 1 if the quest is a normal quest,  (2) for daily quests,   (3) for weekly quests.
 * questID : Integer - The quest identification number. This is the number found in GetQuestsCompleted after it has been completed. It is also the number used to identify quests on sites such as Wowhead.com (Example: Rest and Relaxation)
 * startEvent : Boolean - ?
 * displayQuestID : Boolean - true if the  is displayed before the title, false otherwise.
 * isOnMap : Boolean - ?
 * hasLocalPOI : Boolean - ?
 * isTask : Boolean - ?
 * isBounty : Boolean - ? (true for Legion World Quests; is it true for other WQs?)
 * isStory : Boolean - ?
 * isHidden: Boolean - true if the quest is not visible inside the player's quest log.
 * isScaling: Boolean - ?

Example
local i = 1 while GetQuestLogTitle(i) do  local title, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, questID, startEvent, displayQuestID, isOnMap, hasLocalPOI, isTask, isBounty, isStory, isHidden, isScaling = GetQuestLogTitle(i) if ( not isHeader ) then DEFAULT_CHAT_FRAME:AddMessage(title .. " [" .. level .. "] " .. questID) end i = i + 1 end

Result
Prints the name, level, and Quest ID of all quests in your quest log.