Function sortWorklogs

  • Experimental

    Sort worklogs by a specified field.

    Parameters

    • worklogs: unknown
    • field: unknown
    • order: unknown

    Returns Promise<unknown[]>

    Example

    SR.worklog.sortWorklogs(worklogs, 'timespent', 'desc')
    // expected result: worklogs sorted by time spent in descending order