congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
WorklogService.deleteWithManuallyAdjustedEstimate
Code IndexAdd Tabnine to your IDE (free)

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

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

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

@Override
public Worklog validateAndPerformAndManualAdjustEstimate(JiraServiceContext serviceContext, Issue issue, WorklogInputParameters worklogInputParameters)
{
  WorklogAdjustmentAmountResult worklogResult = getWorklogService().validateDeleteWithManuallyAdjustedEstimate(serviceContext, worklogInputParameters.getWorklogId(), ((WorklogAdjustmentAmountInputParameters) worklogInputParameters).getAdjustmentAmount());
  boolean success = getWorklogService().deleteWithManuallyAdjustedEstimate(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"));
}
com.atlassian.jira.bc.issue.worklogWorklogServicedeleteWithManuallyAdjustedEstimate

Javadoc

Deletes the specified com.atlassian.jira.issue.worklog.Worklog. This method will adjust the issues remaining estimate to be the new value which has been passed to this method, the old remaining estimate value will be lost.

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
  • deleteAndRetainRemainingEstimate
    Deletes the specified com.atlassian.jira.issue.worklog.Worklog. This method will make no adjustment
  • 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
  • updateAndRetainRemainingEstimate,
  • updateWithNewRemainingEstimate,
  • validateCreateWithNewEstimate,
  • validateDelete,
  • validateDeleteWithNewEstimate,
  • validateUpdate,
  • validateUpdateWithNewEstimate,
  • createWithManuallyAdjustedEstimate,
  • hasPermissionToDelete

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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