Package com.atlassian.jira.issue.priority

Examples of com.atlassian.jira.issue.priority.Priority


    final Timestamp slaLastCalculatedVal = (Timestamp) issue.getCustomFieldValue(slaLastCalculated);
    final String responseSlaStateVal = (String) issue.getCustomFieldValue(responseSlaState);
    final String fixKPIStateVal = (String) issue.getCustomFieldValue(fixKPIState);
    final Period timeElapsedVal = (Period) issue.getCustomFieldValue(timeElapsed);
    final Timestamp onHoldVal = (Timestamp) issue.getCustomFieldValue(onHold);
        Priority priority = issue.getPriorityObject();
        final String incidentPriorityVal = priority.getName();

    long responseTime = getResponseSLAInMillis(slaConfig, incidentPriorityVal);
    long fixTime = getFixKPIInMillis(slaConfig, incidentPriorityVal);

View Full Code Here


   * @param issue
   * @param user
   * @param issueManager
   */
  public static void dispatchEvent(Issue issue, User user, final IssueManager issueManager, final CustomFieldManager customFieldManager, Long eventId) {
        Priority priority = issue.getPriorityObject();
        final String incidentPriorityVal = priority.getName();
   
    final boolean isP1 = incidentPriorityVal.startsWith(PRIORITY_1);
    final boolean isP2 = incidentPriorityVal.startsWith(PRIORITY_2);
    final boolean isP3 = incidentPriorityVal.startsWith(PRIORITY_3);
    // NOTE Following 3 lines of comment are not applicable now, but left here in case we want to revert to this functionality.
View Full Code Here

    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());
View Full Code Here

TOP

Related Classes of com.atlassian.jira.issue.priority.Priority

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.