|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.jira.JiraSession
public class JiraSession
Connection to JIRA.
JIRA has a built-in timeout for a session, so after some inactive period the session will become invalid. The caller must make sure that this doesn't happen.
| Field Summary | |
|---|---|
JiraSoapService |
service
|
String |
token
This security token is used by the server to associate SOAP invocations with a specific user. |
| Method Summary | |
|---|---|
void |
addComment(String issueId,
String comment,
String groupVisibility,
String roleVisibility)
Adds a comment to the existing issue. |
boolean |
existsIssue(String id)
|
String |
getActionIdForIssue(String issueKey,
String workflowAction)
Returns the matching action id for a given action name. |
RemoteGroup |
getGroup(String groupId)
Gets the details of a group, given a groupId. |
RemoteIssue |
getIssue(String id)
Gets the details of one issue. |
RemoteIssue[] |
getIssuesFromJqlSearch(String jqlSearch)
Gets all issues that match the given JQL filter |
RemoteIssue[] |
getIssuesWithFixVersion(String projectKey,
String version)
|
RemoteIssue[] |
getIssuesWithFixVersion(String projectKey,
String version,
String filter)
|
RemoteIssueType[] |
getIssueTypes()
Get all issue types |
Set<String> |
getProjectKeys()
Returns the set of project keys (like MNG, JENKINS, etc) that are available in this JIRA. |
RemoteProjectRole |
getRole(String roleId)
Gets the details of a role, given a roleId. |
String |
getStatusById(String statusId)
Returns the status name by status id. |
RemoteVersion |
getVersionByName(String projectKey,
String name)
Get a version by its name |
RemoteVersion[] |
getVersions(String projectKey)
Get all versions from the given project |
void |
migrateIssuesToFixVersion(String projectKey,
String version,
String query)
|
String |
progressWorkflowAction(String issueKey,
String workflowActionName,
RemoteFieldValue[] fields)
Progresses the issue's workflow by performing the specified action. |
void |
releaseVersion(String projectKey,
RemoteVersion version)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final JiraSoapService service
public final String token
| Method Detail |
|---|
public Set<String> getProjectKeys()
throws RemoteException
RemoteException
public void addComment(String issueId,
String comment,
String groupVisibility,
String roleVisibility)
throws RemoteException
groupVisibility -
RemoteException
public RemoteIssue getIssue(String id)
throws RemoteException
id - Issue ID like "MNG-1235".
RemoteException
public RemoteIssue[] getIssuesFromJqlSearch(String jqlSearch)
throws RemoteException
jqlSearch - JQL query string to execute
RemoteException
public RemoteGroup getGroup(String groupId)
throws RemoteException
Group - ID like "Software Development"
RemoteException
public RemoteProjectRole getRole(String roleId)
throws RemoteException
Role - ID like "Software Development"
RemoteException
public RemoteVersion[] getVersions(String projectKey)
throws RemoteException
projectKey - The key for the project
RemoteException
public RemoteVersion getVersionByName(String projectKey,
String name)
throws RemoteException
projectKey - The key for the projectname - The version name
RemoteException
public RemoteIssue[] getIssuesWithFixVersion(String projectKey,
String version)
throws RemoteException
RemoteException
public RemoteIssue[] getIssuesWithFixVersion(String projectKey,
String version,
String filter)
throws RemoteException
RemoteException
public RemoteIssueType[] getIssueTypes()
throws RemoteException
RemoteException
public boolean existsIssue(String id)
throws RemoteException
RemoteException
public void releaseVersion(String projectKey,
RemoteVersion version)
throws RemoteException
RemoteException
public void migrateIssuesToFixVersion(String projectKey,
String version,
String query)
throws RemoteException
RemoteException
public String progressWorkflowAction(String issueKey,
String workflowActionName,
RemoteFieldValue[] fields)
throws RemoteException
issueKey - workflowActionName - fields -
RemoteException
public String getActionIdForIssue(String issueKey,
String workflowAction)
throws RemoteException
issueKey - workflowAction -
RemoteException
public String getStatusById(String statusId)
throws RemoteException
statusId -
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||