Tabnine Logo
WorklogService.deleteAndRetainRemainingEstimate
Code IndexAdd Tabnine to your IDE (free)

How to use
deleteAndRetainRemainingEstimate
method
in
com.atlassian.jira.bc.issue.worklog.WorklogService

Best Java code snippets using com.atlassian.jira.bc.issue.worklog.WorklogService.deleteAndRetainRemainingEstimate (Showing top 3 results out of 315)

origin: com.atlassian.jira/jira-rest-plugin

@Override
public Worklog validateAndPerformAndLeaveEstimate(JiraServiceContext serviceContext, Issue issue, WorklogInputParameters worklogInputParameters)
{
  WorklogResult worklogResult = getWorklogService().validateDelete(serviceContext, worklogInputParameters.getWorklogId());
  boolean success = getWorklogService().deleteAndRetainRemainingEstimate(serviceContext, worklogResult, true);
  return success ? worklogResult.getWorklog() : null;
}
origin: com.atlassian.jira/jira-core

@RequiresXsrfCheck
protected String doExecute() throws Exception
{
  // Based on how the user wants to update the remaining estimate we will call the correct do method on the service
  if (ADJUST_ESTIMATE_AUTO.equalsIgnoreCase(adjustEstimate))
  {
    worklogService.deleteAndAutoAdjustRemainingEstimate(getJiraServiceContext(), worklogResult, true);
  }
  else if (ADJUST_ESTIMATE_NEW.equalsIgnoreCase(adjustEstimate))
  {
    worklogService.deleteWithNewRemainingEstimate(getJiraServiceContext(), (WorklogNewEstimateResult) worklogResult, true);
  }
  else if (ADJUST_ESTIMATE_MANUAL.equalsIgnoreCase(adjustEstimate))
  {
    worklogService.deleteWithManuallyAdjustedEstimate(getJiraServiceContext(), (WorklogAdjustmentAmountResult) worklogResult, true);
  }
  else
  {
    worklogService.deleteAndRetainRemainingEstimate(getJiraServiceContext(), worklogResult, true);
  }
  if (getHasErrorMessages())
  {
    return ERROR;
  }
  if (isInlineDialogMode())
  {
    return returnComplete();
  }
  return getRedirect("/browse/" + getIssue().getString("key"));
}
origin: com.atlassian.jira.plugins/atlassian-jira-rpc-plugin

public void deleteWorklogAndRetainRemainingEstimate(User user, String remoteWorklogId)
    throws RemoteException, RemotePermissionException, RemoteValidationException
{
  JiraServiceContext serviceContext = new JiraServiceContextImpl(user, new SimpleErrorCollection());
  Long id = SoapUtils.toLongRequired(remoteWorklogId);
  WorklogResult worklogResult = worklogService.validateDelete(serviceContext, id);
  checkAndThrowValidationException(serviceContext.getErrorCollection());
  if (worklogResult == null)
  {
    throw new RemoteValidationException(getI18nHelper().getText("error.unexpected.condition", "WorklogService.validateDelete"));
  }
  worklogService.deleteAndRetainRemainingEstimate(serviceContext, worklogResult, true);
  checkAndThrowRemoteException(serviceContext.getErrorCollection());
}
com.atlassian.jira.bc.issue.worklogWorklogServicedeleteAndRetainRemainingEstimate

Javadoc

Deletes the specified com.atlassian.jira.issue.worklog.Worklog. This method will make no adjustment to the issues remaining estimate.

Popular methods of WorklogService

  • createAndAutoAdjustRemainingEstimate
  • validateCreate
  • getById
    Used to get a worklog by its id.
  • createAndRetainRemainingEstimate
    Persists a new com.atlassian.jira.issue.worklog.Worklog on the given Issue. This method will make no
  • createWithNewRemainingEstimate
    Persists a new com.atlassian.jira.issue.worklog.Worklog on the given Issue. This method will adjust
  • deleteAndAutoAdjustRemainingEstimate
    Deletes the specified com.atlassian.jira.issue.worklog.Worklog. This method will auto-adjust the iss
  • deleteWithNewRemainingEstimate
    Deletes the specified com.atlassian.jira.issue.worklog.Worklog. This method will adjust the issues r
  • getByIssueVisibleToUser
    Returns a PagedList over all all child worklogs of a specified issue that the provided user has perm
  • updateAndAutoAdjustRemainingEstimate
    Updates the provided com.atlassian.jira.issue.worklog.Worklog. This method will auto-adjust the issu
  • updateAndRetainRemainingEstimate
    Updates the provided com.atlassian.jira.issue.worklog.Worklog. This method will make no adjustment t
  • updateWithNewRemainingEstimate
    Updates the provided com.atlassian.jira.issue.worklog.Worklog. This method will adjust the issues re
  • validateCreateWithNewEstimate
    Determines whether worklogs are enabled in JIRA and if the user has the required permission as deter
  • updateWithNewRemainingEstimate,
  • validateCreateWithNewEstimate,
  • validateDelete,
  • validateDeleteWithNewEstimate,
  • validateUpdate,
  • validateUpdateWithNewEstimate,
  • createWithManuallyAdjustedEstimate,
  • deleteWithManuallyAdjustedEstimate,
  • hasPermissionToDelete

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Option (scala)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now