Package com.atlassian.jira

Examples of com.atlassian.jira.ComponentManager


      if (user == null) {
        log.error("Cannot find user " + slaServiceUser);
      }

      // Get a search request service to use for searching
      final ComponentManager componentManager = ComponentManager.getInstance();
      final SearchService searchService = componentManager.getSearchService();
      final ProjectManager projectManager = componentManager.getProjectManager();
      final IssueTypeSchemeManager issueTypeSchemeManager = componentManager.getIssueTypeSchemeManager();
      final EventTypeManager eventTypeManager = componentManager.getEventTypeManager();
      final CustomFieldManager customFieldManager = componentManager.getCustomFieldManager();

      initialiseEventTypeIds(eventTypeManager);

      // create service context to execute search with
      JiraServiceContextImpl jiraServiceContextImpl = new JiraServiceContextImpl(user);
View Full Code Here


        timeElapsed.createValue(issue, period);
      }
      //**
//      log.debug("Updated elapsed time");

      ComponentManager componentManager = ComponentManager.getInstance();
      final IssueManager issueManager = componentManager.getIssueManager();
      final CustomFieldManager customFieldManager = componentManager.getCustomFieldManager();

      // response SLA handling
      if (dateRespondedVal == null) {
        // breached
        if (elapsedTimeInMillis > responseTime) {
View Full Code Here

  public void execute(Map transientVars, Map args, PropertySet ps)
      throws WorkflowException {
   
    MutableIssue mIssue = (MutableIssue) transientVars.get("issue");
   
    ComponentManager componentManager = ComponentManager.getInstance();
    final CustomFieldManager customFieldManager = componentManager.getCustomFieldManager();
    final CustomField dateResolved = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.DATE_RESOLVED);       
    final CustomField dateResponded = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.DATE_RESPONDED);       
    final CustomField slaLastCalculated = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.SLA_LAST_CALCULATED);       
    final CustomField responseSlaState = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.RESPONSE_SLA_STATE);       
    final CustomField fixSlaState = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.FIX_KPI_STATE);       
View Full Code Here

  public void execute(Map transientVars, Map args, PropertySet ps)
      throws WorkflowException {
   
    MutableIssue mIssue = (MutableIssue) transientVars.get("issue");
   
    ComponentManager componentManager = ComponentManager.getInstance();
    final CustomFieldManager customFieldManager = componentManager.getCustomFieldManager();
    final CustomField dateResolved = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.DATE_RESOLVED);       
    final CustomField dateResponded = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.DATE_RESPONDED);       
    final CustomField slaLastCalculated = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.SLA_LAST_CALCULATED);       
    final CustomField responseSlaState = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.RESPONSE_SLA_STATE);       
    final CustomField fixSlaState = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.FIX_KPI_STATE);       
View Full Code Here

   */
  public void execute(Map transientVars, Map args, PropertySet ps)
      throws WorkflowException {
    MutableIssue mIssue = (MutableIssue) transientVars.get("issue");
   
    ComponentManager componentManager = ComponentManager.getInstance();
    final CustomFieldManager customFieldManager = componentManager.getCustomFieldManager();
    final CustomField slaLastCalculated = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.SLA_LAST_CALCULATED);       
    final CustomField onHold = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.ON_HOLD);       

    final Timestamp slaLastCalculatedVal = (Timestamp)mIssue.getCustomFieldValue(slaLastCalculated);

View Full Code Here

  public void execute(Map transientVars, Map args, PropertySet ps)
      throws WorkflowException {
   
    MutableIssue mIssue = (MutableIssue) transientVars.get("issue");
   
    ComponentManager componentManager = ComponentManager.getInstance();
    final CustomFieldManager customFieldManager = componentManager.getCustomFieldManager();

    final Priority priorityObject = mIssue.getPriorityObject();
    final String name = priorityObject.getName();
    if (name != null && name.startsWith(SLAServiceJob.PRIORITY_1))
    {
      final Project project = mIssue.getProjectObject();
      final GenericValue securityLevel = mIssue.getSecurityLevel();
      final ClientSLAConfig clientSLAConfiguration = SLAServiceJob.getClientSLAConfiguration(securityLevel.getString("name"), project.getName());
      if (clientSLAConfiguration != null)
      {
        final String p1ResponseSLA = clientSLAConfiguration.getP1ResponseSLA();
        if (p1ResponseSLA != null && p1ResponseSLA.trim().length() > 0)
        {
          User user;
          try {
            user = UserUtils.getUser(SLAServiceJob.getSLAServiceUserName());
          } catch (EntityNotFoundException e) {
            e.printStackTrace();
            throw new WorkflowException(e.getMessage());
          }
         
 
          final IssueManager issueManager = componentManager.getIssueManager();
          SLAServiceJob.dispatchEvent(mIssue, user, issueManager, customFieldManager, SLAServiceJob.P1_RAISED_EVENT)
        }
      }
    }
  }
View Full Code Here

  public void execute(Map transientVars, Map args, PropertySet ps)
      throws WorkflowException {
   
    MutableIssue mIssue = (MutableIssue) transientVars.get("issue");
   
    ComponentManager componentManager = ComponentManager.getInstance();
    final CustomFieldManager customFieldManager = componentManager.getCustomFieldManager();
    final CustomField dateResolved = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.DATE_RESOLVED);       
    final CustomField dateResponded = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.DATE_RESPONDED);       
    final CustomField slaLastCalculated = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.SLA_LAST_CALCULATED);       
    final CustomField responseSlaState = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.RESPONSE_SLA_STATE);       
    final CustomField fixSlaState = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.FIX_KPI_STATE);       
View Full Code Here

TOP

Related Classes of com.atlassian.jira.ComponentManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.