public class JiraScraper extends Object
| Constructor and Description |
|---|
JiraScraper() |
| Modifier and Type | Method and Description |
|---|---|
void |
createComponent(String projectKey,
String subcomponent,
String owner,
com.atlassian.jira.rest.client.domain.AssigneeType defaultAssignee)
JIRA doesn't have the SOAP API to create a component, so we need to do this via a HTTP POST and page scraping.
|
void |
deleteComponent(String projectKey,
String deletedComponentName,
String backupComponentName)
Deletes the specified component
|
static void |
main(String[] args) |
void |
renameComponent(String projectKey,
String oldName,
String newName)
Deletes the specified component
|
void |
setDefaultAssignee(String projectId,
String component,
com.atlassian.jira.rest.client.domain.AssigneeType assignee) |
void |
setDefaultAssignee(String projectId,
String component,
com.atlassian.jira.rest.client.domain.AssigneeType assignee,
String name) |
public JiraScraper()
throws IOException
IOExceptionpublic void createComponent(String projectKey, String subcomponent, String owner, com.atlassian.jira.rest.client.domain.AssigneeType defaultAssignee) throws IOException
IOExceptionpublic void deleteComponent(String projectKey, String deletedComponentName, String backupComponentName) throws IOException
projectKey - Project IddeletedComponentName - Name of the component to be deletedbackupComponentName - Existing issues will be moved to this componentIOException - Missing componentspublic void renameComponent(String projectKey, String oldName, String newName) throws IOException
projectKey - Project IdoldName - Name of the component to be renamednewName - New name to be setIOException - Cannot find the initial component or the new name is existpublic void setDefaultAssignee(String projectId, String component, com.atlassian.jira.rest.client.domain.AssigneeType assignee) throws IOException
IOExceptionpublic void setDefaultAssignee(String projectId, String component, com.atlassian.jira.rest.client.domain.AssigneeType assignee, String name) throws IOException
IOExceptionCopyright © 2004-2014. All Rights Reserved.