@PublicApi
public interface SubTaskManager
Modifier and Type | Field and Description |
---|---|
static String |
SUB_TASK_ISSUE_TYPE_STYLE |
static String |
SUB_TASK_LINK_TYPE_INWARD_NAME |
static String |
SUB_TASK_LINK_TYPE_NAME |
static String |
SUB_TASK_LINK_TYPE_OUTWARD_NAME |
static String |
SUB_TASK_LINK_TYPE_STYLE |
Modifier and Type | Method and Description |
---|---|
IssueUpdateBean |
changeParent(Issue subTask,
Issue parentIssue,
ApplicationUser currentUser)
Change the parent of the given subtask to the given new parent on behalf
of the given user.
|
void |
createSubTaskIssueLink(Issue parentIssue,
Issue subTaskIssue,
ApplicationUser remoteUser) |
void |
disableSubTasks() |
void |
enableSubTasks()
Enables sub-tasks on the instance.
|
void |
enableSubTasks(boolean createDefaultIfMissing)
Enables sub-tasks on the instance.
|
Collection<Long> |
getAllSubTaskIssueIds() |
Long |
getParentIssueId(org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Use
getParentIssueId(Issue) instead. Since v6.4. |
Long |
getParentIssueId(Issue issue)
Returns the parent issue ID of this the given issue.
|
Long |
getParentIssueId(Long issueId)
Returns the parent issue ID of this the given issue.
|
SubTaskBean |
getSubTaskBean(Issue issue,
ApplicationUser remoteUser)
Returns the SubTaskBean for the given parent issue in the context of the given user.
|
List<IssueLink> |
getSubTaskIssueLinks(Long issueId)
Returns a list of issue links associated with the issue
|
IssueType |
getSubTaskIssueType(String id)
Returns the SubTask IssueType with the given ID.
|
IssueType |
getSubTaskIssueTypeById(String id)
Deprecated.
Use
getSubTaskIssueType(String) instead. Since v5.0. |
Collection<IssueType> |
getSubTaskIssueTypeObjects()
Retrieves all the sub-task issue types
|
Collection<Issue> |
getSubTaskObjects(Issue issue) |
IssueType |
insertSubTaskIssueType(String name,
Long sequence,
String description,
Long avatarId)
Create new issue type and adds it to default scheme.
|
IssueType |
insertSubTaskIssueType(String name,
Long sequence,
String description,
String iconurl)
Deprecated.
Use
insertSubTaskIssueType(String, Long, String, Long) since v6.3. |
boolean |
isSubTask(Issue issue)
Return true if the given issue is a subtask.
|
boolean |
isSubTasksEnabled() |
boolean |
issueTypeExistsById(String id) |
boolean |
issueTypeExistsByName(String name) |
void |
moveSubTask(Issue issue,
Long currentSequence,
Long sequence) |
void |
moveSubTaskIssueTypeDown(String id) |
void |
moveSubTaskIssueTypeUp(String id) |
void |
removeSubTaskIssueType(String name) |
void |
resetSequences(Issue issue) |
void |
updateSubTaskIssueType(String id,
String name,
Long sequence,
String description,
Long avatarId)
Update existing sub-task issue type.
|
void |
updateSubTaskIssueType(String id,
String name,
Long sequence,
String description,
String iconurl)
Deprecated.
Use
updateSubTaskIssueType(String, String, Long, String, Long) instead. Since v6.3. |
static final String SUB_TASK_ISSUE_TYPE_STYLE
static final String SUB_TASK_LINK_TYPE_NAME
static final String SUB_TASK_LINK_TYPE_STYLE
static final String SUB_TASK_LINK_TYPE_INWARD_NAME
static final String SUB_TASK_LINK_TYPE_OUTWARD_NAME
void enableSubTasks() throws CreateException
CreateException
- if the default sub-task issue type creation failed.void enableSubTasks(boolean createDefaultIfMissing) throws CreateException
createDefaultIfMissing
- if true
and there are no sub-task issue types present, then the default
sub-task issue type will be created.CreateException
- if the default sub-task issue type creation failed.boolean isSubTasksEnabled()
void disableSubTasks()
boolean isSubTask(Issue issue)
issue
- the issue@Nullable Long getParentIssueId(org.ofbiz.core.entity.GenericValue issue)
getParentIssueId(Issue)
instead. Since v6.4.issue
- the issue@Nullable Long getParentIssueId(Issue issue)
issue
- the issuegetParentIssueId(Long)
@Nullable Long getParentIssueId(Long issueId)
issueId
- the issue ID of the subtaskgetParentIssueId(Issue)
SubTaskBean getSubTaskBean(Issue issue, ApplicationUser remoteUser)
issue
- the IssueremoteUser
- the uservoid resetSequences(Issue issue)
@Deprecated IssueType insertSubTaskIssueType(String name, Long sequence, String description, String iconurl) throws CreateException
insertSubTaskIssueType(String, Long, String, Long)
since v6.3.CreateException
IssueType insertSubTaskIssueType(String name, Long sequence, String description, Long avatarId) throws CreateException
CreateException
@Deprecated void updateSubTaskIssueType(String id, String name, Long sequence, String description, String iconurl) throws DataAccessException
updateSubTaskIssueType(String, String, Long, String, Long)
instead. Since v6.3.DataAccessException
void updateSubTaskIssueType(String id, String name, Long sequence, String description, Long avatarId) throws DataAccessException
DataAccessException
void removeSubTaskIssueType(String name) throws RemoveException
RemoveException
Collection<IssueType> getSubTaskIssueTypeObjects()
IssueType
s.boolean issueTypeExistsById(String id)
boolean issueTypeExistsByName(String name)
void moveSubTaskIssueTypeUp(String id) throws DataAccessException
DataAccessException
void moveSubTaskIssueTypeDown(String id) throws DataAccessException
DataAccessException
IssueType getSubTaskIssueTypeById(String id)
getSubTaskIssueType(String)
instead. Since v5.0.id
- the IDIssueType getSubTaskIssueType(String id)
id
- the IDvoid createSubTaskIssueLink(Issue parentIssue, Issue subTaskIssue, ApplicationUser remoteUser) throws CreateException
CreateException
Collection<Long> getAllSubTaskIssueIds()
List<IssueLink> getSubTaskIssueLinks(Long issueId)
issueId
- issue idCollection<Issue> getSubTaskObjects(Issue issue)
IssueUpdateBean changeParent(Issue subTask, Issue parentIssue, ApplicationUser currentUser) throws RemoveException, CreateException
subTask
- The SubTaskparentIssue
- The parent IssuecurrentUser
- The userRemoveException
- if there's a problem unlinking original parent.CreateException
- if there's a problem linking new parent.Copyright © 2002-2019 Atlassian. All Rights Reserved.