|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.rpc.xmlrpc.JiraXmlRpcService
public class JiraXmlRpcService
Constructor Summary | |
---|---|
JiraXmlRpcService(com.atlassian.plugin.PluginManager pluginManager)
|
Method Summary | |
---|---|
boolean |
addComment(String token,
String issueKey,
String comment)
Adds a comment to an issue |
Hashtable |
createIssue(String token,
Hashtable rIssueStruct)
Creates an issue in JIRA from a Hashtable object. |
Vector |
getComments(String token,
String issueKey)
Returns all comments associated with the issue |
Vector |
getComponents(String token,
String projectKey)
Returns all components available in the specified project |
Hashtable |
getIssue(String token,
String issueKey)
Gets an issue from a given issue key. |
Vector |
getIssuesFromFilter(String token,
String filterId)
Executes a saved filter |
Vector |
getIssuesFromTextSearch(String token,
String searchTerms)
Find issues using a free text search |
Vector |
getIssuesFromTextSearchWithProject(String token,
Vector projectKeys,
String searchTerms,
int maxNumResults)
Find issues using a free text search, limited to certain projects |
Vector |
getIssueTypes(String token)
Returns all visible issue types in the system |
Vector |
getIssueTypesForProject(String token,
String projectId)
Returns all visible (non-sub task) issue types for the specified project id |
Vector |
getPriorities(String token)
Returns all priorities in the system |
Vector |
getProjects(String token)
Returns a list of projects available to the user |
Vector |
getResolutions(String token)
Returns all resolutions in the system |
Vector |
getSavedFilters(String token)
Gets all saved filters available for the currently logged in user |
Hashtable |
getServerInfo(String token)
Returns the Server information such as baseUrl, version, edition, buildDate, buildNumber. |
Vector |
getStatuses(String token)
Returns all statuses in the system |
Vector |
getSubTaskIssueTypes(String token)
Returns all visible subtask issue types in the system |
Vector |
getSubTaskIssueTypesForProject(String token,
String projectId)
Returns all visible sub task issue types for the specified project id. |
Hashtable |
getUser(String token,
String username)
Returns a user's information given a username |
Vector |
getVersions(String token,
String projectKey)
Returns all versions available in the specified project |
String |
login(String username,
String password)
Logs the user into JIRA. |
boolean |
logout(String token)
Logs the user out of JIRA |
Hashtable |
updateIssue(String token,
String issueKey,
Hashtable rIssueStruct)
Updates an issue in JIRA from a Hashtable object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JiraXmlRpcService(com.atlassian.plugin.PluginManager pluginManager)
Method Detail |
---|
public String login(String username, String password) throws RemoteException, RemoteAuthenticationException
XmlRpcService
login
in interface XmlRpcService
username
- username of the person logged in in aspassword
- the appropriate password
RemoteException
RemoteAuthenticationException
public boolean logout(String token)
XmlRpcService
logout
in interface XmlRpcService
public Hashtable getServerInfo(String token)
XmlRpcService
getServerInfo
in interface XmlRpcService
RemoteServerInfo
.public Vector getProjects(String token) throws RemotePermissionException, RemoteException, RemoteAuthenticationException
XmlRpcService
getProjects
in interface XmlRpcService
RemoteProject
RemotePermissionException
RemoteException
RemoteAuthenticationException
public Vector getVersions(String token, String projectKey) throws RemotePermissionException, RemoteException, RemoteAuthenticationException
XmlRpcService
getVersions
in interface XmlRpcService
projectKey
- The key of project
RemoteVersion
RemotePermissionException
RemoteException
RemoteAuthenticationException
public Vector getComponents(String token, String projectKey) throws RemotePermissionException, RemoteException, RemoteAuthenticationException
XmlRpcService
getComponents
in interface XmlRpcService
projectKey
- The key of the project
RemoteComment
RemotePermissionException
RemoteException
RemoteAuthenticationException
public Vector getIssueTypesForProject(String token, String projectId) throws RemotePermissionException, RemoteException, RemoteAuthenticationException
XmlRpcService
getIssueTypesForProject
in interface XmlRpcService
RemoteIssueType
RemotePermissionException
RemoteException
RemoteAuthenticationException
public Vector getSubTaskIssueTypesForProject(String token, String projectId) throws RemotePermissionException, RemoteException, RemoteAuthenticationException
XmlRpcService
getSubTaskIssueTypesForProject
in interface XmlRpcService
RemoteIssueType
RemotePermissionException
RemoteException
RemoteAuthenticationException
public Vector getIssueTypes(String token) throws RemotePermissionException, RemoteAuthenticationException
XmlRpcService
getIssueTypes
in interface XmlRpcService
RemoteIssueType
RemotePermissionException
RemoteAuthenticationException
public Vector getSubTaskIssueTypes(String token) throws Exception
XmlRpcService
getSubTaskIssueTypes
in interface XmlRpcService
RemoteIssueType
Exception
public Vector getPriorities(String token) throws RemotePermissionException, RemoteAuthenticationException
XmlRpcService
getPriorities
in interface XmlRpcService
RemotePriority
RemotePermissionException
RemoteAuthenticationException
public Vector getStatuses(String token) throws RemotePermissionException, RemoteAuthenticationException
XmlRpcService
getStatuses
in interface XmlRpcService
RemoteStatus
RemotePermissionException
RemoteAuthenticationException
public Vector getResolutions(String token) throws RemotePermissionException, RemoteAuthenticationException
XmlRpcService
getResolutions
in interface XmlRpcService
RemoteResolution
RemotePermissionException
RemoteAuthenticationException
public Hashtable getUser(String token, String username) throws RemotePermissionException, RemoteAuthenticationException
XmlRpcService
getUser
in interface XmlRpcService
username
- the username of the user being retrieved
RemoteUser
RemotePermissionException
RemoteAuthenticationException
public Vector getSavedFilters(String token) throws RemotePermissionException, RemoteException, RemoteAuthenticationException
XmlRpcService
getSavedFilters
in interface XmlRpcService
RemoteFilter
RemotePermissionException
RemoteException
RemoteAuthenticationException
public Hashtable getIssue(String token, String issueKey) throws RemoteException, RemotePermissionException, RemoteAuthenticationException
XmlRpcService
getIssue
in interface XmlRpcService
issueKey
- the key of an issue (e.g. JRA-111)
RemoteIssue
.
This has nested Hashtables for components RemoteComponent
, affectsVersions, fixVersions RemoteVersion
and customFieldValues RemoteCustomFieldValue
.
RemoteException
RemotePermissionException
RemoteAuthenticationException
public Vector getComments(String token, String issueKey) throws RemoteException, RemotePermissionException, RemoteAuthenticationException
XmlRpcService
getComments
in interface XmlRpcService
issueKey
- the key of an issue (e.g. JRA-111)
RemoteComment
RemoteException
RemotePermissionException
RemoteAuthenticationException
public Hashtable createIssue(String token, Hashtable rIssueStruct) throws RemoteException, RemotePermissionException, RemoteValidationException, RemoteAuthenticationException
XmlRpcService
XmlRpcService.createIssue(String, Hashtable)
. That is components, affectsVersions, fixVersions and customFieldValues must
be blank or be Hashtables with the appropriate data structures. Issues must not have the fields id, key or reporter set,
in addition to any standard rules of issue creation (e.g. permissions, not null summary)
createIssue
in interface XmlRpcService
rIssueStruct
- Hashtable of issue fields with the appropriate structure for RemoteIssue
.
RemoteException
RemotePermissionException
RemoteValidationException
RemoteAuthenticationException
public Hashtable updateIssue(String token, String issueKey, Hashtable rIssueStruct) throws RemoteException
XmlRpcService
XmlRpcService.createIssue(String, Hashtable)
. That is components, affectsVersions, fixVersions and customFieldValues must
be blank or be Hashtables with the appropriate data structures. Issues must not have the fields id, key or reporter set,
in addition to any standard rules of issue creation (e.g. permissions, not null summary)
updateIssue
in interface XmlRpcService
rIssueStruct
- Hashtable of issue fields with the appropriate structure for RemoteIssue
.
RemoteException
public boolean addComment(String token, String issueKey, String comment) throws Exception
XmlRpcService
addComment
in interface XmlRpcService
issueKey
- he key of an issue (e.g. JRA-111)comment
- the text string for the comment
Exception
public Vector getIssuesFromFilter(String token, String filterId) throws RemoteException
XmlRpcService
getIssuesFromFilter
in interface XmlRpcService
filterId
- id of the saved filter
RemoteException
public Vector getIssuesFromTextSearch(String token, String searchTerms) throws Exception
XmlRpcService
getIssuesFromTextSearch
in interface XmlRpcService
searchTerms
- The terms to search for
Exception
public Vector getIssuesFromTextSearchWithProject(String token, Vector projectKeys, String searchTerms, int maxNumResults) throws Exception
XmlRpcService
getIssuesFromTextSearchWithProject
in interface XmlRpcService
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |