View Javadoc

1   package org.apache.maven.plugin.jira;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  /**
23   * Gets relevant issues for a JIRA report.
24   *
25   * @author mfranken@xebia.com
26   * @author jruiz@exist.com
27   * @version $Id: JiraDownloader.html 816601 2012-05-08 12:50:18Z hboutemy $
28   */
29  public final class JiraDownloader
30      extends AbstractJiraDownloader
31  {
32      public JiraDownloader()
33      {
34          statusMap.put( "Open", "1" );
35          statusMap.put( "In Progress", "3" );
36          statusMap.put( "Reopened", "4" );
37          statusMap.put( "Resolved", "5" );
38          statusMap.put( "Closed", "6" );
39  
40          resolutionMap.put( "Unresolved", "-1" );
41          resolutionMap.put( "Fixed", "1" );
42          resolutionMap.put( "Won't Fix", "2" );
43          resolutionMap.put( "Duplicate", "3" );
44          resolutionMap.put( "Incomplete", "4" );
45          resolutionMap.put( "Cannot Reproduce", "5" );
46  
47          priorityMap.put( "Blocker", "1" );
48          priorityMap.put( "Critical", "2" );
49          priorityMap.put( "Major", "3" );
50          priorityMap.put( "Minor", "4" );
51          priorityMap.put( "Trivial", "5" );
52  
53          typeMap.put( "Bug", "1" );
54          typeMap.put( "New Feature", "2" );
55          typeMap.put( "Task", "3" );
56          typeMap.put( "Improvement", "4" );
57          typeMap.put( "Wish", "5" );
58          typeMap.put( "Test", "6" );
59          typeMap.put( "Sub-task", "7" );
60      }
61  }