Package com.atlassian.jira.rest.v2.issue
Class IssueSubTaskResource
java.lang.Object
com.atlassian.jira.rest.v2.issue.IssueSubTaskResource
@Path("issue/{issueIdOrKey}/subtask")
@Produces("application/json")
public class IssueSubTaskResource
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionIssueSubTaskResource
(SubTaskService subTaskService, IssueFinder issueFinder, JiraAuthenticationContext authenticationContext, IssueLinksBeanBuilderFactory issueLinksBeanBuilderFactory, ResponseFactory responseFactory) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
canMoveSubTask
(String issueIdOrKey) javax.ws.rs.core.Response
getSubTasks
(String issueIdOrKey) Returns an issue's subtask listjavax.ws.rs.core.Response
moveSubTasks
(String issueIdOrKey, IssueSubTaskMovePositionBean position) Reorders an issue's subtasks by moving the subtask at index "from" to index "to".
-
Constructor Details
-
IssueSubTaskResource
@Inject public IssueSubTaskResource(SubTaskService subTaskService, IssueFinder issueFinder, JiraAuthenticationContext authenticationContext, IssueLinksBeanBuilderFactory issueLinksBeanBuilderFactory, ResponseFactory responseFactory)
-
-
Method Details
-
getSubTasks
Returns an issue's subtask list- Parameters:
issueIdOrKey
- The parent issue's key or id
-
canMoveSubTask
@GET @Path("move") public javax.ws.rs.core.Response canMoveSubTask(@PathParam("issueIdOrKey") String issueIdOrKey) -
moveSubTasks
@POST @Path("move") @Consumes("application/json") public javax.ws.rs.core.Response moveSubTasks(@PathParam("issueIdOrKey") String issueIdOrKey, IssueSubTaskMovePositionBean position) Reorders an issue's subtasks by moving the subtask at index "from" to index "to".- Parameters:
issueIdOrKey
- The parent issue's key or idposition
- the description of previous and current position of subtask in the sequence.
-