Package net.sf.redmine_mylyn.api.model

Examples of net.sf.redmine_mylyn.api.model.IssuePriority


    //TODO repositoryAttributes (via aspect)
    if (configuration!=null) {
      IssuePriorities priorities = configuration.getIssuePriorities();
     
      TaskAttribute attribute = getTaskData().getRoot().getAttribute(RedmineAttribute.PRIORITY.getTaskKey());
      IssuePriority priority = priorities.getById(RedmineUtil.parseIntegerId(attribute.getValue()));
     
      //some tickets references a non existing priority ?!
      if (priority==null) {
        priority = priorities.getDefault();
       
        if(priority==null && priorities.getAll().size()>0) {
          priority = priorities.getAll().get(0);
        }
      }
     
      if (priority==null) {
        PriorityLevel.fromLevel(1);
      } else {
        int pos = priority.getPosition();
        level = PriorityLevel.fromLevel(pos>5 ? 1 : 6-pos);
      }
    }

    return level;
View Full Code Here


      /* Default-Values */
      TaskAttribute root = taskData.getRoot();
      root.getAttribute(RedmineAttribute.PROJECT.getTaskKey()).setValue(""+issue.getProjectId()); //$NON-NLS-1$
      root.getAttribute(RedmineAttribute.TRACKER.getTaskKey()).setValue(""+issue.getTrackerId()); //$NON-NLS-1$
     
      IssuePriority priority = conf.getIssuePriorities().getDefault();
      if(priority!=null) {
        root.getAttribute(RedmineAttribute.PRIORITY.getTaskKey()).setValue(""+priority.getId()); //$NON-NLS-1$
      } else if(conf.getIssuePriorities().getAll().size()>0){
        root.getAttribute(RedmineAttribute.PRIORITY.getTaskKey()).setValue(""+conf.getIssuePriorities().getAll().get(0)); //$NON-NLS-1$
      }
     
      IssueStatus status = conf.getIssueStatuses().getDefault();
View Full Code Here

TOP

Related Classes of net.sf.redmine_mylyn.api.model.IssuePriority

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.