public abstract class IssueTrackingSystem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.io.Serializable> |
mProperties |
Constructor and Description |
---|
IssueTrackingSystem() |
Modifier and Type | Method and Description |
---|---|
void |
addAttachmentToWorkItem(WorkItem ticket,
WorkItemAttachmentUpload attachment)
Adds an attachment to a ticket
|
abstract void |
addCommentToWorkItem(WorkItem ticket,
java.lang.String comment)
Adds a comment to a ticket.
|
void |
addCommentToWorkItem(WorkItem ticket,
java.lang.String comment,
java.util.List<WorkItemAttachmentUpload> attachments)
Adds a comment with attachments to a ticket.
|
abstract void |
changeWorkItemStatusTo(WorkItem ticket,
java.io.Serializable status)
Status is id value as entered on Status tab.
|
abstract void |
checkConnection()
Check connection using details provided in getProperties().
|
abstract java.util.List<WorkItemStatus> |
getAvailableWorkItemStatuses(WorkItem ticket) |
java.lang.String |
getIssueTrackingSystemName() |
abstract java.util.List<IssueTrackingSystemInstanceProject> |
getProjects() |
java.util.Map<java.lang.String,java.io.Serializable> |
getProperties() |
abstract WorkItemDetails |
getWorkItem(WorkItem ticket) |
abstract WorkItemAttachmentContent |
getWorkItemAttachmentContent(WorkItem ticket,
java.io.Serializable attachmentId) |
WorkItemAllowedAttachmentLocation |
getWorkItemAttachmentLocation()
Return the allowed locations for work item attachments
|
abstract java.util.Collection<WorkItemAttachment> |
getWorkItemAttachments(WorkItem ticket) |
abstract java.util.Collection<WorkItemComment> |
getWorkItemComments(WorkItem ticket,
int offset,
int limit) |
abstract java.util.Collection<WorkItemUpdate> |
getWorkItemHistory(WorkItem ticket,
int offset,
int limit) |
abstract java.util.List<WorkItemDetails> |
getWorkItems(java.util.List<WorkItem> workItems) |
abstract java.lang.String |
getWorkItemStatus(WorkItem ticket)
Return Status Name as String.
|
abstract java.lang.String |
getWorkItemURL(WorkItem ticket)
Return ticket's absolute URL.
|
boolean |
isExternalSearchExcludeKeysSupported() |
boolean |
isExternalSearchFilterRequired() |
boolean |
isExternalSearchProjectRequired() |
boolean |
isExternalSearchProjectSupported() |
boolean |
isExternalSearchSupported() |
abstract java.util.Collection<java.lang.String> |
parseWorkItemNumberFromChangeLogs(java.util.List<java.lang.String> pMessagesToParse,
java.util.List<java.lang.String> pTicketPatternList)
Provides a valid Issue Tracking System number by parsing the ticketNumber using the pattern
|
abstract void |
populateWorkItem(WorkItem ticket)
Populates ticket's data (e.g.
|
abstract java.util.List<WorkItemSearchResult> |
searchWorkItems(WorkItemSearchInput pInput)
Searches for work items in ITS matching a filter and project
Can optionally provide a release id for filtering out work items already in release, or a list
of work item numbers to exclude from results
|
void |
setIssueTrackingSystemName(java.lang.String pIssueTrackingSystemName) |
void |
setProperties(java.util.Map<java.lang.String,java.io.Serializable> pProperties) |
public void setIssueTrackingSystemName(java.lang.String pIssueTrackingSystemName)
public java.lang.String getIssueTrackingSystemName()
public void setProperties(java.util.Map<java.lang.String,java.io.Serializable> pProperties)
public java.util.Map<java.lang.String,java.io.Serializable> getProperties()
public abstract void populateWorkItem(WorkItem ticket) throws ApiException
ticket
- ApiException
public abstract java.lang.String getWorkItemURL(WorkItem ticket) throws ApiException
ticket
- ApiException
public abstract void addCommentToWorkItem(WorkItem ticket, java.lang.String comment) throws ApiException
ticket
- comment
- ApiException
public WorkItemAllowedAttachmentLocation getWorkItemAttachmentLocation()
public void addCommentToWorkItem(WorkItem ticket, java.lang.String comment, java.util.List<WorkItemAttachmentUpload> attachments) throws ApiException
ticket
- comment
- ApiException
public void addAttachmentToWorkItem(WorkItem ticket, WorkItemAttachmentUpload attachment) throws ApiException
ticket
- attachment
- ApiException
public abstract void changeWorkItemStatusTo(WorkItem ticket, java.io.Serializable status) throws ApiException
ticket
- status
- ApiException
public abstract java.lang.String getWorkItemStatus(WorkItem ticket) throws ApiException
ticket
- ApiException
public abstract void checkConnection() throws ApiException
ApiException
public abstract java.util.Collection<java.lang.String> parseWorkItemNumberFromChangeLogs(java.util.List<java.lang.String> pMessagesToParse, java.util.List<java.lang.String> pTicketPatternList) throws ApiException
pMessagesToParse
- pTicketPatternList
- ApiException
public abstract WorkItemDetails getWorkItem(WorkItem ticket) throws ApiException
ApiException
public abstract java.util.List<WorkItemDetails> getWorkItems(java.util.List<WorkItem> workItems) throws ApiException
ApiException
public abstract java.util.Collection<WorkItemComment> getWorkItemComments(WorkItem ticket, int offset, int limit) throws ApiException
ApiException
public abstract java.util.Collection<WorkItemUpdate> getWorkItemHistory(WorkItem ticket, int offset, int limit) throws ApiException
ApiException
public abstract java.util.Collection<WorkItemAttachment> getWorkItemAttachments(WorkItem ticket) throws ApiException
ApiException
public abstract WorkItemAttachmentContent getWorkItemAttachmentContent(WorkItem ticket, java.io.Serializable attachmentId) throws ApiException
ApiException
public abstract java.util.List<WorkItemStatus> getAvailableWorkItemStatuses(WorkItem ticket) throws ApiException
ApiException
public abstract java.util.List<WorkItemSearchResult> searchWorkItems(WorkItemSearchInput pInput) throws ApiException
pInput
- ApiException
public abstract java.util.List<IssueTrackingSystemInstanceProject> getProjects() throws ApiException
ApiException
public boolean isExternalSearchSupported() throws ApiException
ApiException
public boolean isExternalSearchExcludeKeysSupported() throws ApiException
ApiException
public boolean isExternalSearchProjectRequired() throws ApiException
ApiException
public boolean isExternalSearchProjectSupported() throws ApiException
ApiException
public boolean isExternalSearchFilterRequired() throws ApiException
ApiException