<?xml version="1.0" encoding="utf-8"?>

<result>
	<task>
		<taskId>$task.taskId</taskId>
		<createDate>$utils.formatTimestamp($task.createDate)</createDate>
		<updateDate>$utils.formatTimestamp($task.updateDate)</updateDate>
		<deadEndDate>$utils.formatDate($task.deadEndDate)</deadEndDate>
		<estimatedManHour>$task.estimatedManHour</estimatedManHour>
		<priority>$task.priority</priority>
		<status>$task.statusId</status>
		<tagList>
#set ($taskTagList = $task.tagAsList)
#foreach($taskTag in $taskTagList)
			<tag>
				<name><![CDATA[$utils.raw($taskTag)]]></name>
				<styleClass>$tagMap.get($taskTag).tagTypeBean.styleClass</styleClass>
			</tag>
#end
 		</tagList>
		<contents><![CDATA[$utils.raw($task.contents)]]></contents>
		<fileList>
#foreach($attachedFile in $task.attachedFileBeans)
			<file>
				<fileId>$attachedFile.fileId</fileId>
				<name>$attachedFile.name</name>
				<url>$link.setAction('/downloadFile').addQueryData('fileId', $attachedFile.fileId)</url>
			</file>
#end
		</fileList>
		<commentList>
#foreach($comment in $task.taskCommentBeans)
			<comment>
				<commentId>$comment.commentId</commentId>
				<commentator>$comment.commentator</commentator>
				<contents><![CDATA[$utils.raw($comment.contents)]]></contents>
				<updateDate>$utils.formatTimestamp($comment.updateDate)</updateDate>
			</comment>
#end
		</commentList>
	</task>
	<tagMasterList>
#foreach($tag in $tagList)
		<tag>
			<tagId>$tag.tagId</tagId>
			<name><![CDATA[$utils.raw($tag.name)]]></name>
			<styleClass>$tag.tagTypeBean.styleClass</styleClass>
		</tag>
#end
	</tagMasterList>
</result>
