function exportTasks() {
        $('.js-exportSprint').click(function() {
            var now = new Date().getTime();
            var tasksArray = [['Task Name','Task Time(hr:min)'],]
            chrome.storage.local.get(['tasks'], function (result) {
                if(result.tasks.current.anyCurrent){
                    timer = now - result.tasks.current.date;
                    timer = millisToMinutesAndSeconds(timer);
                    var crnt = [result.tasks.current.name,timer]
                    tasksArray.push(crnt)
                }

                for (var i = 0; i < result.tasks.oldTasks.length; i++) {
                   crnttime = millisToMinutesAndSeconds(result.tasks.oldTasks[i].totalSpended);
                   var tsk = [result.tasks.oldTasks[i].name,crnttime]
                   tasksArray.push(tsk)
                }
                exportToCsv('sprint-tasks.csv', tasksArray)
            })
        })
        
    }
/**
     * export tasks as csv
     * @function exportTasks
     * @memberof popupjs
     */
export tasks as csv
@function exportTasks
@memberof popupjs
export tasks as csv @function exportTasks @memberof popupjs
function exportTasks() {
        $('.js-exportSprint').click(function() {
            var now = new Date().getTime();
            var tasksArray = [['Task Name','Task Time(hr:min)'],]
            chrome.storage.local.get(['tasks'], function (result) {
                if(result.tasks.current.anyCurrent){
                    timer = now - result.tasks.current.date;
                    timer = millisToMinutesAndSeconds(timer);
                    var crnt = [result.tasks.current.name,timer]
                    tasksArray.push(crnt)
                }
                for (var i = 0; i < result.tasks.oldTasks.length; i++) {
                   crnttime = millisToMinutesAndSeconds(result.tasks.oldTasks[i].totalSpended);
                   var tsk = [result.tasks.oldTasks[i].name,crnttime]
                   tasksArray.push(tsk)
                }
                exportToCsv('sprint-tasks.csv', tasksArray)
            })
        })
    }
function exportTasks ( ) { $ ( '.js-exportSprint' ) . click ( function ( ) { var now = new Date ( ) . getTime ( ) ; var tasksArray = [ [ 'Task Name' , 'Task Time(hr:min)' ] , ] chrome . storage . local . get ( [ 'tasks' ] , function ( result ) { if ( result . tasks . current . anyCurrent ) { timer = now - result . tasks . current . date ; timer = millisToMinutesAndSeconds ( timer ) ; var crnt = [ result . tasks . current . name , timer ] tasksArray . push ( crnt ) } for ( var i = 0 ; i < result . tasks . oldTasks . length ; i ++ ) { crnttime = millisToMinutesAndSeconds ( result . tasks . oldTasks [ i ] . totalSpended ) ; var tsk = [ result . tasks . oldTasks [ i ] . name , crnttime ] tasksArray . push ( tsk ) } exportToCsv ( 'sprint-tasks.csv' , tasksArray ) } ) } ) }
export tasks as csv
 @function exportTasks
 @memberof popupjs
export tasks as csv @function exportTasks @memberof popupjs