setAutoAdjust Utility Function for Worklog

    Signature

    Signature
    setAutoAdjust()
    Description

    If the worklog is added, exalate reduces the estimate of the issue by timeSpent of the worklog

    Introduced in 2.4.0

    Example use
    // is the default, so it's not necessary to call it  explicitly
    issue.workLogs = workLogHelper.mergeWorkLogs(issue, replica)
    // or, if wanted explicitly:
    issue.workLogs = workLogHelper.mergeWorkLogs(issue, replica, { worklog -> worklog.setAutoAdjust() })

    Comments>

    The setAutoAdjust is a utility function that adjusts the remaining estimate value by subtracting the amount of work logged in the timeSpent field from the remaining estimate current value.