```coffeescript
Tasks = require './Tasks'
Task = require '../models/Task'

class TasksActive extends Tasks

    model: Task

    url: "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/tasks/active"

    parse: (tasks) ->
        _.each tasks, (task, i) =>
            task.JSONString = utils.stringJSON task
            task.id = task.taskId.id
            task.name = task.mesosTask.name
            task.resources = @parseResources task
            task.memoryHuman = if task.resources?.memoryMb? then "#{ task.resources.memoryMb }Mb" else ''
            task.host = task.offer.hostname?.split('.')[0]
            task.startedAt = task.taskId.startedAt
            task.startedAtHuman = moment(task.taskId.startedAt).from()
            task.rack = task.taskId.rackId
            tasks[i] = task
            app.allTasks[task.id] = task

        tasks

    parseResources: (task) ->
        cpus: _.find(task.mesosTask.resources, (resource) -> resource.name is 'cpus')?.scalar?.value ? ''
        memoryMb: _.find(task.mesosTask.resources, (resource) -> resource.name is 'mem')?.scalar?.value ? ''

    comparator: 'startedAt'

module.exports = TasksActive```

Add requestId as a top-level attribute of an active task
user
```coffeescript
Tasks = require './Tasks'
Task = require '../models/Task'

class TasksActive extends Tasks

    model: Task

    url: "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/tasks/active"

    parse: (tasks) ->
        _.each tasks, (task, i) =>
            task.JSONString = utils.stringJSON task
            task.id = task.taskId.id
            task.requestId = task.taskRequest?.request.id
            task.name = task.mesosTask.name
            task.resources = @parseResources task
            task.memoryHuman = if task.resources?.memoryMb? then "#{ task.resources.memoryMb }Mb" else ''
            task.host = task.offer.hostname?.split('.')[0]
            task.startedAt = task.taskId.startedAt
            task.startedAtHuman = moment(task.taskId.startedAt).from()
            task.rack = task.taskId.rackId
            tasks[i] = task
            app.allTasks[task.id] = task

        tasks

    parseResources: (task) ->
        cpus: _.find(task.mesosTask.resources, (resource) -> resource.name is 'cpus')?.scalar?.value ? ''
        memoryMb: _.find(task.mesosTask.resources, (resource) -> resource.name is 'mem')?.scalar?.value ? ''

    comparator: 'startedAt'

module.exports = TasksActive```
assistant