11
11
import com .atlassian .jira .rest .client .JiraRestClient ;
12
12
import com .atlassian .jira .rest .client .JiraRestClientFactory ;
13
13
import com .atlassian .jira .rest .client .ProjectRestClient ;
14
- //import com.atlassian.jira.rest.client.NullProgressMonitor;
15
14
import com .atlassian .jira .rest .client .RestClientException ;
16
15
import com .atlassian .jira .rest .client .domain .BasicIssue ;
17
16
import com .atlassian .jira .rest .client .domain .Issue ;
@@ -93,17 +92,14 @@ public void fetchVersionDetails(String projectKey, String versionLabel) {
93
92
try {
94
93
// Create the initial JIRA connection.
95
94
Logger .log ("Establishing JIRA API connection for generating changelog to " + jiraServerURI_ + "." );
96
- // final JerseyJiraRestClientFactory factory = new JerseyJirasRestClientFactory();
97
95
JiraRestClientFactory factory = new AsynchronousJiraRestClientFactory ();
98
96
final JiraRestClient restClient = factory .createWithBasicHttpAuthentication (jiraServerURI_ , username_ , password_ );
99
- // final NullProgressMonitor pm = new NullProgressMonitor();
100
97
101
98
// Get an instance of the JIRA Project
102
99
Logger .log ("Obtaining project information via JIRA API." );
103
100
ProjectRestClient projectClient = restClient .getProjectClient ();
104
101
Promise <Project > promise = projectClient .getProject (projectKey );
105
102
Project proj = promise .claim ();
106
- // Project proj = restClient.getProjectClient().getProject(projectKey, pm);
107
103
108
104
// Get a list of versions for this project and identify the one were
109
105
// currently trying to build.
@@ -152,8 +148,6 @@ public void fetchVersionDetails(String projectKey, String versionLabel) {
152
148
try {
153
149
Promise <SearchResult > searchJql = restClient .getSearchClient ().searchJql ("project = '" + projectKey + "' and fixVersion = '" + v .getName () + "'" + jql_ );
154
150
sr = searchJql .claim ();
155
- // sr = restClient.getSearchClient().searchJql("project = '" + projectKey + "' and fixVersion = '" + v.getName() + "'" + jql_);
156
- // sr = restClient.getSearchClient().searchJql("project = '" + projectKey + "' and fixVersion = '" + v.getName() + "'" + jql_, pm);
157
151
158
152
for (BasicIssue bi : sr .getIssues ()) {
159
153
Logger .log ("Obtaining further issue details for issue '" + bi .getKey () + "' via JIRA API." );
@@ -265,4 +259,4 @@ public int compare(VersionInfo a, VersionInfo b) {
265
259
return -(a .getName ().compareTo (b .getName ()));
266
260
}
267
261
}
268
- }
262
+ }
0 commit comments