Tabnine Logo
JiraClient
Code IndexAdd Tabnine to your IDE (free)

How to use
JiraClient
in
net.rcarz.jiraclient

Best Java code snippets using net.rcarz.jiraclient.JiraClient (Showing top 16 results out of 315)

origin: rcarz/jira-client

/**
 * Creates an Agile client.
 *
 * @param jira JIRA client
 */
public AgileClient(JiraClient jira) {
  restclient = jira.getRestClient();
}
origin: rcarz/jira-client

/**
 * Search for issues with the given query.
 *
 * @param jql JQL statement
 *
 * @return a search result structure with results (issues include all
 * navigable fields)
 *
 * @throws JiraException when the search fails
 */
public Issue.SearchResult searchIssues(String jql)
    throws JiraException {
  return searchIssues(jql, null, null, null, null);
}
origin: qaprosoft/zafira

public JiraContext(String url, String username, String password)
{
  this.credentials = new BasicCredentials(username, password);
  this.jiraClient = new JiraClient(url, credentials);
  final HttpParams httpParams = new BasicHttpParams();
  HttpConnectionParams.setConnectionTimeout(httpParams, 10000);
  ((DefaultHttpClient)getJiraClient().getRestClient().getHttpClient()).setParams(httpParams);
}
origin: qaprosoft/zafira

public Issue getIssue(String ticket) {
  Issue issue = null;
  try {
    issue = getJiraClient().getIssue(ticket);
  } catch (Exception e) {
    LOGGER.error("Unable to find Jira issue: " + ticket, e);
  }
  return issue;
}
origin: qaprosoft/zafira

@Override
public boolean isConnected() {
  boolean connected = false;
  try {
    connected = getJiraClient() != null && getJiraClient().getProjects() != null;
  } catch (Exception e) {
    LOGGER.error("Unable to connect to JIRA", e);
  }
  return connected;
}
origin: rcarz/jira-client

public ArrayList<IssueHistory> getIssueChangeLog(Issue issue) throws JiraException {
  try {
    ArrayList<IssueHistory> changes = null;
    JSON response = getNextPortion(issue, 0);
    while (true) {
      JSONObject object = JSONObject.fromObject(response);
      Object opers = object.get("changelog");
      object = JSONObject.fromObject(opers);
      Integer totalObj = (Integer)object.get("total");
      JSONArray histories = JSONArray.fromObject(object.get("histories"));
      if (changes == null) {
        changes = new ArrayList<IssueHistory>(totalObj);
      }
      for (int i = 0; i < histories.size(); i++) {
        JSONObject p = histories.getJSONObject(i);
        changes.add(new IssueHistory(restclient, p));
      }
      if (changes.size() >= totalObj) {
        break;
      } else {
        response = getNextPortion(issue,changes.size());
      }
    } 
        return changes;
  } catch (Exception ex) {
    throw new JiraException(ex.getMessage(), ex);
  }
}
origin: com.qaprosoft/carina-utils

  Issue bug = jira.getIssue(bugId);
  return String.format("Bug %s \"%s\" with status \"%s\" associated", bugUrl, bug.getSummary(), bug.getStatus().getName());
} catch (Exception e) {
origin: rcarz/jira-client

/**
 * Search for issues with the given query and max results.
 *
 * @param jql JQL statement
 * @param maxResults limit the number of results
 *
 * @return a search result structure with results (issues include all
 * navigable fields)
 *
 * @throws JiraException when the search fails
 */
public Issue.SearchResult searchIssues(String jql, Integer maxResults)
    throws JiraException {
  return searchIssues(jql, null, null, maxResults, null);
}
origin: net.rcarz/jira-client

/**
 * Creates a GreenHopper client.
 *
 * @param jira JIRA client
 */
public GreenHopperClient(JiraClient jira) {
  restclient = jira.getRestClient();
}
origin: qaprosoft/carina

  Issue bug = jira.getIssue(bugId);
  return String.format("Bug %s \"%s\" with status \"%s\" associated", bugUrl, bug.getSummary(), bug.getStatus().getName());
} catch (Exception e) {
origin: rcarz/jira-client

/**
 * Search for issues with the given query and specify which fields to
 * retrieve and expand.
 *
 * @param jql JQL statement
 *
 * @param includedFields Specifies which issue fields will be included in
 * the result.
 * <br>Some examples how this parameter works:
 * <ul>
 * <li>*all - include all fields</li>
 * <li>*navigable - include just navigable fields</li>
 * <li>summary,comment - include just the summary and comments</li>
 * <li>*all,-comment - include all fields</li>
 * </ul>
 *
 * @param expandFields Specifies with issue fields should be expanded
 *
 * @return a search result structure with results
 *
 * @throws JiraException when the search fails
 */
public Issue.SearchResult searchIssues(String jql, String includedFields,
                    String expandFields) throws JiraException {
  return searchIssues(jql, includedFields, expandFields, null, null);
}

origin: rcarz/jira-client

/**
 * Creates a GreenHopper client.
 *
 * @param jira JIRA client
 */
public GreenHopperClient(JiraClient jira) {
  restclient = jira.getRestClient();
}
origin: rcarz/jira-client

/**
 * Search for issues with the given query and specify which fields to
 * retrieve.
 *
 * @param jql JQL statement
 * @param maxResults limit the number of results
 *
 * @param includedFields Specifies which issue fields will be included in
 * the result.
 * <br>Some examples how this parameter works:
 * <ul>
 * <li>*all - include all fields</li>
 * <li>*navigable - include just navigable fields</li>
 * <li>summary,comment - include just the summary and comments</li>
 * <li>*all,-comment - include all fields</li>
 * </ul>
 *
 *
 * @return a search result structure with results
 *
 * @throws JiraException when the search fails
 */
public Issue.SearchResult searchIssues(String jql, String includedFields, Integer maxResults)
    throws JiraException {
  return searchIssues(jql, includedFields, null, maxResults, null);
}
origin: rcarz/jira-client

/**
 * Search for issues with the given query and specify which fields to
 * retrieve.
 *
 * @param jql JQL statement
 *
 * @param includedFields Specifies which issue fields will be included in
 * the result.
 * <br>Some examples how this parameter works:
 * <ul>
 * <li>*all - include all fields</li>
 * <li>*navigable - include just navigable fields</li>
 * <li>summary,comment - include just the summary and comments</li>
 * <li>*all,-comment - include all fields</li>
 * </ul>
 *
 *
 * @return a search result structure with results
 *
 * @throws JiraException when the search fails
 */
public Issue.SearchResult searchIssues(String jql, String includedFields)
    throws JiraException {
  return searchIssues(jql, includedFields, null, null, null);
}
origin: rcarz/jira-client

  Integer maxResults, Integer startAt) throws JiraException {
return searchIssues(jql, includedFields, null, maxResults, startAt);
origin: stackoverflow.com

 BasicCredentials credentials=new BasicCredentials(userName,passWord);
JiraClient jira=new JiraClient("https://myproject.info",credentials);

Issue.SearchResult sr = jira.searchIssues("Your project Name(in my case  TC)", 100);

   for (Issue i : sr.issues) {
      System.out.println(i.getSummary());
      System.out.println(i.getKey());
      etc ...

   }
net.rcarz.jiraclientJiraClient

Javadoc

A simple JIRA REST client.

Most used methods

  • getIssue
    Retreives the issue with the given key.
  • getRestClient
  • searchIssues
    Search for issues with the given query and specify which fields to retrieve. If the total results is
  • <init>
    Creates an authenticated JIRA client with custom HttpClient.
  • getNextPortion
  • getProjects
    Obtains the list of all projects in Jira.

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now