public class Jira extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Jira.Call |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addComment(String issueKey,
String comment)
Adds a comment to an issue TODO: If someone adds a comment to an issue, we should account for that in our caching
|
void |
autofill(String scheme,
boolean enabled)
Valid schemes are "issue", "project", "voters", and "attachments" "issues" is enabled by default
|
Issue |
createIssue(Issue issue)
Creates an issue in JIRA TODO: If someone creates an issue, we should account for that in our caching
|
Issue |
fill(Issue issue) |
List |
getComments(Issue issue) |
List |
getComments(String issueKey)
List<
Comment>: Returns all comments associated with the issue |
Component |
getComponent(Project project,
int id) |
Component |
getComponent(Project project,
String name) |
Component |
getComponent(String projectKey,
int id) |
Component |
getComponent(String projectKey,
String name) |
List<Component> |
getComponents(Project project) |
List<Component> |
getComponents(String projectKey)
List<
Component>: Returns all components available in the specified project |
List |
getFavoriteFilters() |
Issue |
getIssue(String issueKey) |
List<Issue> |
getIssuesFromFilter(Filter filter) |
List<Issue> |
getIssuesFromFilter(int filterId) |
List<Issue> |
getIssuesFromFilter(String filterName) |
List<Issue> |
getIssuesFromTextSearch(String searchTerms) |
List<Issue> |
getIssuesFromTextSearchWithProject(List projectKeys,
String searchTerms,
int maxNumResults) |
IssueType |
getIssueType(int id) |
IssueType |
getIssueType(String name) |
List<IssueType> |
getIssueTypes() |
List |
getIssueTypesForProject(int projectId) |
List |
getIssueTypesForProject(String projectKey) |
List<Priority> |
getPriorities()
List<
Priority>: Returns all priorities in the system |
Priority |
getPriority(int id) |
Priority |
getPriority(String name) |
Project |
getProject(int id) |
Project |
getProject(String key) |
List<Project> |
getProjects()
List<
Project>: Returns a list of projects available to the user |
Resolution |
getResolution(int id) |
Resolution |
getResolution(String name) |
List<Resolution> |
getResolutions()
List<
Resolution>: Returns all resolutions in the system |
Filter |
getSavedFilter(int id) |
Filter |
getSavedFilter(String name) |
List<Filter> |
getSavedFilters()
List<
Filter>: Gets all saved filters available for the currently logged in user |
ServerInfo |
getServerInfo()
Returns the Server information such as baseUrl, version, edition, buildDate, buildNumber.
|
Status |
getStatus(int id) |
Status |
getStatus(String name) |
List<Status> |
getStatuses()
List<
Status>: Returns all statuses in the system |
IssueType |
getSubTaskIssueType(int id) |
IssueType |
getSubTaskIssueType(String name) |
List<IssueType> |
getSubTaskIssueTypes()
List<
IssueType>: Returns all visible subtask issue types in the system |
User |
getUser(String username)
Returns a user's information given a username
|
Version |
getVersion(Project project,
int id) |
Version |
getVersion(Project project,
String name) |
Version |
getVersion(String projectKey,
int id) |
Version |
getVersion(String projectKey,
String name) |
List<Version> |
getVersions(Project project) |
List<Version> |
getVersions(String projectKey)
List<
Version>: Returns all versions available in the specified project |
void |
login(String username,
String password)
Logs the user into JIRA
|
boolean |
logout()
remove this token from the list of logged in tokens.
|
Issue |
updateIssue(String issueKey,
Issue issue)
Updates an issue in JIRA from a HashMap object TODO: If someone updates an issue, we should account for that in our caching
|
public Jira(String endpoint) throws MalformedURLException
MalformedURLExceptionpublic void autofill(String scheme, boolean enabled)
scheme - enabled - public void login(String username, String password) throws Exception
Exceptionpublic boolean logout()
throws Exception
Exceptionpublic List getComments(String issueKey)
Comment>: Returns all comments associated with the issuepublic boolean addComment(String issueKey, String comment) throws Exception
Exceptionpublic Issue createIssue(Issue issue) throws Exception
Exceptionpublic Issue updateIssue(String issueKey, Issue issue) throws Exception
Exceptionpublic List<Issue> getIssuesFromFilter(Filter filter) throws Exception
Exceptionpublic List<Issue> getIssuesFromFilter(String filterName) throws Exception
Exceptionpublic List<Issue> getIssuesFromFilter(int filterId) throws Exception
Exceptionpublic List<Issue> getIssuesFromTextSearch(String searchTerms) throws Exception
Exceptionpublic List<Issue> getIssuesFromTextSearchWithProject(List projectKeys, String searchTerms, int maxNumResults) throws Exception
Exceptionpublic IssueType getIssueType(int id)
public List getIssueTypesForProject(int projectId)
public List<Priority> getPriorities()
Priority>: Returns all priorities in the systempublic Priority getPriority(int id)
public List<Project> getProjects()
Project>: Returns a list of projects available to the userpublic Project getProject(int id)
public List<Resolution> getResolutions()
Resolution>: Returns all resolutions in the systempublic Resolution getResolution(String name)
public Resolution getResolution(int id)
public Status getStatus(int id)
public List<Filter> getSavedFilters()
Filter>: Gets all saved filters available for the currently logged in userpublic Filter getSavedFilter(int id)
public ServerInfo getServerInfo()
public List<IssueType> getSubTaskIssueTypes()
IssueType>: Returns all visible subtask issue types in the systemIssueTypepublic IssueType getSubTaskIssueType(int id)
public List<Component> getComponents(String projectKey)
Component>: Returns all components available in the specified projectpublic List<Version> getVersions(String projectKey)
Version>: Returns all versions available in the specified projectpublic List getFavoriteFilters()
Copyright © 2016 The Codehaus Foundation. All rights reserved.