com.atlassian.greenhopper.manager.issuelink
Interface EpicLinkManager

All Known Implementing Classes:
EpicLinkManagerImpl

public interface EpicLinkManager

Access information about epic-issue relationships from the database level.


Field Summary
static java.lang.String EPIC_CHILD_FIELD_NAME
           
 
Method Summary
 ServiceOutcome<java.lang.Void> associateIssuesWithEpic(com.atlassian.crowd.embedded.api.User user, com.atlassian.fugue.Option<com.atlassian.jira.issue.Issue> epic, java.util.Set<com.atlassian.jira.issue.Issue> issues)
          Associate the given issues with the epic specified.
 ServiceOutcome<java.lang.Void> disassociateEpicFromIssues(com.atlassian.crowd.embedded.api.User user, java.util.Set<com.atlassian.jira.issue.Issue> issues)
          Disassociate epics associated to the given issues
 ServiceOutcome<java.lang.Void> disassociateIssuesFromEpic(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.issue.Issue epic)
          Disassociate issues associated to the given epic
 com.atlassian.fugue.Option<com.atlassian.jira.issue.Issue> getEpic(com.atlassian.jira.issue.Issue child)
          Get the Epic of an issue, if one exists, by performing a database lookup of an issue's links.
 java.util.List<com.atlassian.jira.issue.Issue> getIssuesInEpic(com.atlassian.jira.issue.Issue epic)
          Get a list of all of the child epics if there are any by looking up the issue's links.
 

Field Detail

EPIC_CHILD_FIELD_NAME

static final java.lang.String EPIC_CHILD_FIELD_NAME
See Also:
Constant Field Values
Method Detail

getEpic

@Nonnull
com.atlassian.fugue.Option<com.atlassian.jira.issue.Issue> getEpic(com.atlassian.jira.issue.Issue child)
Get the Epic of an issue, if one exists, by performing a database lookup of an issue's links.

Parameters:
child - the issue
Returns:
the epic issue if the child has one

getIssuesInEpic

java.util.List<com.atlassian.jira.issue.Issue> getIssuesInEpic(com.atlassian.jira.issue.Issue epic)
Get a list of all of the child epics if there are any by looking up the issue's links.

Parameters:
epic -
Returns:
outcome containing a list of issues

associateIssuesWithEpic

@Nonnull
ServiceOutcome<java.lang.Void> associateIssuesWithEpic(com.atlassian.crowd.embedded.api.User user,
                                                               @Nonnull
                                                               com.atlassian.fugue.Option<com.atlassian.jira.issue.Issue> epic,
                                                               @Nonnull
                                                               java.util.Set<com.atlassian.jira.issue.Issue> issues)
Associate the given issues with the epic specified. If the epic is not specified, it will disassociate the issues from their current epics.

Parameters:
user - the user performing the operation
epic - the epic; specify Option.none() to disassociate
issues - the issues
Returns:
the result

disassociateEpicFromIssues

ServiceOutcome<java.lang.Void> disassociateEpicFromIssues(com.atlassian.crowd.embedded.api.User user,
                                                          @Nonnull
                                                          java.util.Set<com.atlassian.jira.issue.Issue> issues)
Disassociate epics associated to the given issues


disassociateIssuesFromEpic

ServiceOutcome<java.lang.Void> disassociateIssuesFromEpic(com.atlassian.crowd.embedded.api.User user,
                                                          @Nonnull
                                                          com.atlassian.jira.issue.Issue epic)
Disassociate issues associated to the given epic



Copyright © 2007-2014 Atlassian. All Rights Reserved.