public static WorklogInput create(URI issueUri, @Nullable String comment, DateTime startDate, int minutesSpent) { return new WorklogInputBuilder(issueUri).setComment(comment).setStartDate(startDate).setMinutesSpent(minutesSpent) .build(); }
/** * Sets AdjustEstimate to LEAVE - leaves estimate as is. * * @return this worklog input builder object */ public WorklogInputBuilder setAdjustEstimateLeave() { return setAdjustEstimate(WorklogInput.AdjustEstimate.LEAVE, null); }
@SuppressWarnings("UnusedDeclaration") public WorklogInputBuilder copyFromWorklog(Worklog worklog) { return this .setSelf(worklog.getSelf()) .setIssueUri(worklog.getIssueUri()) .setAuthor(worklog.getAuthor()) .setUpdateAuthor(worklog.getUpdateAuthor()) .setComment(worklog.getComment()) .setStartDate(worklog.getStartDate()) .setMinutesSpent(worklog.getMinutesSpent()) .setVisibility(worklog.getVisibility()); }
@SuppressWarnings("UnusedDeclaration") public WorklogInputBuilder copyFromWorklog(Worklog worklog) { return this .setSelf(worklog.getSelf()) .setIssueUri(worklog.getIssueUri()) .setAuthor(worklog.getAuthor()) .setUpdateAuthor(worklog.getUpdateAuthor()) .setComment(worklog.getComment()) .setStartDate(worklog.getStartDate()) .setMinutesSpent(worklog.getMinutesSpent()) .setVisibility(worklog.getVisibility()); }
public static WorklogInput create(URI issueUri, @Nullable String comment, DateTime startDate, int minutesSpent) { return new WorklogInputBuilder(issueUri).setComment(comment).setStartDate(startDate).setMinutesSpent(minutesSpent) .build(); }
/** * Sets AdjustEstimate to MANUAL - reduces remaining estimate by given value. * * @param reduceEstimateByMinutes the amount to reduce the remaining estimate by, in minutes. * @return this worklog input builder object */ public WorklogInputBuilder setAdjustEstimateManual(int reduceEstimateByMinutes) { return setAdjustEstimate(WorklogInput.AdjustEstimate.MANUAL, reduceEstimateByMinutes + ESTIMATE_UNIT_MINUTES); }
public static WorklogInput create(URI issueUri, @Nullable String comment, DateTime startDate, int minutesSpent, @Nullable Visibility visibility) { return new WorklogInputBuilder(issueUri).setComment(comment).setStartDate(startDate).setMinutesSpent(minutesSpent) .setVisibility(visibility).build(); }
/** * Sets AdjustEstimate to NEW - sets estimate to specified value. * * @param newEstimate new estimate value to set.<br> * You can specify a time unit after a time value 'X', such as Xw, Xd, Xh or Xm, * to represent weeks (w), days (d), hours (h) and minutes (m), respectively.<br> * If you do not specify a time unit, minute will be assumed. * @return this worklog input builder object */ public WorklogInputBuilder setAdjustEstimateNew(String newEstimate) { return setAdjustEstimate(WorklogInput.AdjustEstimate.NEW, newEstimate); }
public static WorklogInput create(URI issueUri, @Nullable String comment, DateTime startDate, int minutesSpent, @Nullable Visibility visibility) { return new WorklogInputBuilder(issueUri).setComment(comment).setStartDate(startDate).setMinutesSpent(minutesSpent) .setVisibility(visibility).build(); }
/** * Sets AdjustEstimate to NEW - sets estimate to specified value. * * @param newEstimateMinutes new estimate value to set, in minutes. * @return this worklog input builder object */ public WorklogInputBuilder setAdjustEstimateNew(int newEstimateMinutes) { return setAdjustEstimate(WorklogInput.AdjustEstimate.NEW, newEstimateMinutes + ESTIMATE_UNIT_MINUTES); }
/** * Sets AdjustEstimate to MANUAL - reduces remaining estimate by given value. * * @param reduceEstimateBy the amount to reduce the remaining estimate by<br> * You can specify a time unit after a time value 'X', such as Xw, Xd, Xh or Xm, * to represent weeks (w), days (d), hours (h) and minutes (m), respectively.<br> * If you do not specify a time unit, minute will be assumed. * @return this worklog input builder object */ public WorklogInputBuilder setAdjustEstimateManual(String reduceEstimateBy) { return setAdjustEstimate(WorklogInput.AdjustEstimate.MANUAL, reduceEstimateBy); }
/** * Sets AdjustEstimate to NEW - sets estimate to specified value. * * @param newEstimateMinutes new estimate value to set, in minutes. * @return this worklog input builder object */ public WorklogInputBuilder setAdjustEstimateNew(int newEstimateMinutes) { return setAdjustEstimate(WorklogInput.AdjustEstimate.NEW, newEstimateMinutes + ESTIMATE_UNIT_MINUTES); }
/** * Sets AdjustEstimate to MANUAL - reduces remaining estimate by given value. * * @param reduceEstimateByMinutes the amount to reduce the remaining estimate by, in minutes. * @return this worklog input builder object */ public WorklogInputBuilder setAdjustEstimateManual(int reduceEstimateByMinutes) { return setAdjustEstimate(WorklogInput.AdjustEstimate.MANUAL, reduceEstimateByMinutes + ESTIMATE_UNIT_MINUTES); }
/** * Sets AdjustEstimate to AUTO - will automatically adjust the value * based on the minutes spend specified on the worklog input.<br> * This is the default option. * * @return this worklog input builder object */ @SuppressWarnings("UnusedDeclaration") public WorklogInputBuilder setAdjustEstimateAuto() { return setAdjustEstimate(WorklogInput.AdjustEstimate.AUTO, null); }
/** * Sets AdjustEstimate to NEW - sets estimate to specified value. * * @param newEstimate new estimate value to set.<br> * You can specify a time unit after a time value 'X', such as Xw, Xd, Xh or Xm, * to represent weeks (w), days (d), hours (h) and minutes (m), respectively.<br> * If you do not specify a time unit, minute will be assumed. * @return this worklog input builder object */ public WorklogInputBuilder setAdjustEstimateNew(String newEstimate) { return setAdjustEstimate(WorklogInput.AdjustEstimate.NEW, newEstimate); }
/** * Sets AdjustEstimate to MANUAL - reduces remaining estimate by given value. * * @param reduceEstimateBy the amount to reduce the remaining estimate by<br> * You can specify a time unit after a time value 'X', such as Xw, Xd, Xh or Xm, * to represent weeks (w), days (d), hours (h) and minutes (m), respectively.<br> * If you do not specify a time unit, minute will be assumed. * @return this worklog input builder object */ public WorklogInputBuilder setAdjustEstimateManual(String reduceEstimateBy) { return setAdjustEstimate(WorklogInput.AdjustEstimate.MANUAL, reduceEstimateBy); }
/** * Sets AdjustEstimate to AUTO - will automatically adjust the value * based on the minutes spend specified on the worklog input. * <p> * This is the default option. * * @return this worklog input builder object */ @SuppressWarnings("UnusedDeclaration") public WorklogInputBuilder setAdjustEstimateAuto() { return setAdjustEstimate(WorklogInput.AdjustEstimate.AUTO, null); }
/** * Sets AdjustEstimate to LEAVE - leaves estimate as is. * * @return this worklog input builder object */ public WorklogInputBuilder setAdjustEstimateLeave() { return setAdjustEstimate(WorklogInput.AdjustEstimate.LEAVE, null); }