|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractDescribableImpl<JiraSite>
hudson.plugins.jira.JiraSite
public class JiraSite
Represents an external JIRA installation and configuration needed to access this JIRA.
| Nested Class Summary | |
|---|---|
static class |
JiraSite.DescriptorImpl
|
| Field Summary | |
|---|---|
protected static Pattern |
DEFAULT_ISSUE_PATTERN
Regexp pattern that identifies JIRA issue token. |
String |
groupVisibility
Group visibility to constrain the visibility of the added comment. |
String |
password
Password needed to login. |
boolean |
recordScmChanges
to record scm changes in jira issue |
String |
roleVisibility
Role visibility to constrain the visibility of the added comment. |
boolean |
supportsWikiStyleComment
True if this JIRA is configured to allow Confluence-style Wiki comment. |
boolean |
updateJiraIssueForAllStatus
updated jira issue for all status |
URL |
url
URL of JIRA, like http://jira.codehaus.org/. |
String |
userName
User name needed to login. |
| Constructor Summary | |
|---|---|
JiraSite(URL url,
String userName,
String password,
boolean supportsWikiStyleComment,
boolean recordScmChanges,
String userPattern,
boolean updateJiraIssueForAllStatus,
String groupVisibility,
String roleVisibility)
|
|
| Method Summary | |
|---|---|
JiraSession |
createSession()
Creates a remote access session to this JIRA. |
boolean |
existsIssue(String id)
Checks if the given JIRA id will be likely to exist in this issue tracker. |
static JiraSite |
get(hudson.model.AbstractProject<?,?> p)
Gets the effective JiraSite associated with the given project. |
JiraIssue |
getIssue(String id)
Returns the remote issue with the given id or null if it wasn't found. |
Pattern |
getIssuePattern()
|
Set<JiraIssue> |
getIssueWithFixVersion(String projectKey,
String versionName)
Gets a set of issues that have the given fixVersion associated with them. |
String |
getName()
|
Set<String> |
getProjectKeys()
Gets the list of project IDs in this JIRA. |
String |
getReleaseNotesForFixVersion(String projectKey,
String versionName)
Generates release notes for a given version. |
String |
getReleaseNotesForFixVersion(String projectKey,
String versionName,
String filter)
Generates release notes for a given version. |
URL |
getUrl(JiraIssue issue)
Computes the URL to the given issue. |
URL |
getUrl(String id)
Computes the URL to the given issue. |
Pattern |
getUserPattern()
Gets the user-defined issue pattern if any. |
Set<JiraVersion> |
getVersions(String projectKey)
Returns all versions for the given project key. |
void |
migrateIssuesToFixVersion(String projectKey,
String versionName,
String query)
Migrates issues matching the jql query provided to a new fix version. |
boolean |
progressMatchingIssues(String jqlSearch,
String workflowActionName,
String comment,
PrintStream console)
Progresses all issues matching the JQL search, using the given workflow action. |
protected Object |
readResolve()
|
void |
releaseVersion(String projectKey,
String versionName)
Release a given version. |
| Methods inherited from class hudson.model.AbstractDescribableImpl |
|---|
getDescriptor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Pattern DEFAULT_ISSUE_PATTERN
First char must be a letter, then at least one letter, digit or underscore. See issue JENKINS-729, JENKINS-4092
public final URL url
public final String userName
public final String password
public final String groupVisibility
public final String roleVisibility
public final boolean supportsWikiStyleComment
public final boolean recordScmChanges
public final boolean updateJiraIssueForAllStatus
| Constructor Detail |
|---|
@DataBoundConstructor
public JiraSite(URL url,
String userName,
String password,
boolean supportsWikiStyleComment,
boolean recordScmChanges,
String userPattern,
boolean updateJiraIssueForAllStatus,
String groupVisibility,
String roleVisibility)
| Method Detail |
|---|
protected Object readResolve()
public String getName()
public JiraSession createSession()
throws IOException,
javax.xml.rpc.ServiceException
IOException
javax.xml.rpc.ServiceException
public URL getUrl(JiraIssue issue)
throws IOException
IOException
public URL getUrl(String id)
throws MalformedURLException
MalformedURLExceptionpublic Pattern getUserPattern()
public Pattern getIssuePattern()
public Set<String> getProjectKeys()
public static JiraSite get(hudson.model.AbstractProject<?,?> p)
JiraSite associated with the given project.
public boolean existsIssue(String id)
This method checks whether the key portion is a valid key (except that it can potentially use stale data). Number portion is not checked at all.
id - String like MNG-1234
public JiraIssue getIssue(String id)
throws IOException,
javax.xml.rpc.ServiceException
null if it wasn't found.
IOException
javax.xml.rpc.ServiceException
public void releaseVersion(String projectKey,
String versionName)
throws IOException,
javax.xml.rpc.ServiceException
projectKey - The Project KeyversionName - The name of the version
IOException
javax.xml.rpc.ServiceException
public Set<JiraVersion> getVersions(String projectKey)
throws IOException,
javax.xml.rpc.ServiceException
projectKey - Project Key
IOException
javax.xml.rpc.ServiceException
public String getReleaseNotesForFixVersion(String projectKey,
String versionName)
throws IOException,
javax.xml.rpc.ServiceException
projectKey - versionName -
IOException
javax.xml.rpc.ServiceException
public String getReleaseNotesForFixVersion(String projectKey,
String versionName,
String filter)
throws IOException,
javax.xml.rpc.ServiceException
projectKey - versionName - filter - Additional JQL Filter. Example: status in (Resolved,Closed)
IOException
javax.xml.rpc.ServiceException
public Set<JiraIssue> getIssueWithFixVersion(String projectKey,
String versionName)
throws IOException,
javax.xml.rpc.ServiceException
projectKey - The project keyversionName - The fixVersion
IOException
javax.xml.rpc.ServiceException
public void migrateIssuesToFixVersion(String projectKey,
String versionName,
String query)
throws IOException,
javax.xml.rpc.ServiceException
projectKey - The project keyversionName - The new fixVersionquery - A JQL Query
IOException
javax.xml.rpc.ServiceException
public boolean progressMatchingIssues(String jqlSearch,
String workflowActionName,
String comment,
PrintStream console)
throws IOException,
javax.xml.rpc.ServiceException
jqlSearch - workflowActionName - comment - console -
IOException
javax.xml.rpc.ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||