Package com.atlassian.jira.rest.v2.admin
Class WorkflowTransitionResource.TransitionResource
java.lang.Object
com.atlassian.jira.rest.v2.admin.WorkflowTransitionResource
com.atlassian.jira.rest.v2.admin.WorkflowTransitionResource.TransitionResource
- Enclosing class:
WorkflowTransitionResource
@Consumes("application/json")
@Produces("application/json")
public static class WorkflowTransitionResource.TransitionResource
extends WorkflowTransitionResource
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.jira.rest.v2.admin.WorkflowTransitionResource
WorkflowTransitionResource.ConstantResponseResource, WorkflowTransitionResource.Factory, WorkflowTransitionResource.PropertyBean, WorkflowTransitionResource.TransitionResource, WorkflowTransitionResource.WorkflowMode
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
createProperty
(long transitionId, String key, String workflowName, String workflowMode, WorkflowTransitionResource.PropertyBean body) Add a new property to a transition.jakarta.ws.rs.core.Response
deleteProperty
(long transitionId, String key, String workflowName, String workflowMode) Delete a property from the passed transition on the passed workflow.jakarta.ws.rs.core.Response
getProperties
(long transitionId, boolean includeReservedKeys, String key, String workflowName, String workflowMode) Return the property or properties associated with a transition.jakarta.ws.rs.core.Response
updateProperty
(long transitionId, String key, String workflowName, String workflowMode, WorkflowTransitionResource.PropertyBean body) Update/add new property to a transition.
-
Method Details
-
getProperties
@GET @Path("{id}/properties") public jakarta.ws.rs.core.Response getProperties(@PathParam("id") long transitionId, @QueryParam("includeReservedKeys") boolean includeReservedKeys, @QueryParam("key") String key, @QueryParam("workflowName") String workflowName, @QueryParam("workflowMode") String workflowMode) Description copied from class:WorkflowTransitionResource
Return the property or properties associated with a transition.- Specified by:
getProperties
in classWorkflowTransitionResource
- Parameters:
transitionId
- the ID of the transition within the workflow.includeReservedKeys
- some keys under the "jira." prefix are editable, some are not. Set this to true in order to include the non-editable keys in the response.key
- the name of the property key to query. Can be left off the query to return all properties.workflowName
- the name of the workflow to use.workflowMode
- the type of workflow to use. Can either be "live" or "draft".
-
createProperty
@POST @Path("{id}/properties") public jakarta.ws.rs.core.Response createProperty(@PathParam("id") long transitionId, @QueryParam("key") String key, @QueryParam("workflowName") String workflowName, @QueryParam("workflowMode") String workflowMode, WorkflowTransitionResource.PropertyBean body) Description copied from class:WorkflowTransitionResource
Add a new property to a transition. Trying to add a property that already exists will fail.- Specified by:
createProperty
in classWorkflowTransitionResource
- Parameters:
transitionId
- the ID of the transition within the workflow.key
- the name of the property to add.workflowName
- the name of the workflow to use.workflowMode
- the type of workflow to use. Can either be "live" or "draft".
-
updateProperty
@PUT @Path("{id}/properties") public jakarta.ws.rs.core.Response updateProperty(@PathParam("id") long transitionId, @QueryParam("key") String key, @QueryParam("workflowName") String workflowName, @QueryParam("workflowMode") String workflowMode, WorkflowTransitionResource.PropertyBean body) Description copied from class:WorkflowTransitionResource
Update/add new property to a transition. Trying to update a property that does not exist will result in a new property being added.- Specified by:
updateProperty
in classWorkflowTransitionResource
- Parameters:
transitionId
- the ID of the transition within the workflow.key
- the name of the property to add.workflowName
- the name of the workflow to use.workflowMode
- the type of workflow to use. Can either be "live" or "draft".
-
deleteProperty
@DELETE @Path("{id}/properties") public jakarta.ws.rs.core.Response deleteProperty(@PathParam("id") long transitionId, @QueryParam("key") String key, @QueryParam("workflowName") String workflowName, @QueryParam("workflowMode") String workflowMode) Description copied from class:WorkflowTransitionResource
Delete a property from the passed transition on the passed workflow. It is not an error to delete a property that does not exist.- Specified by:
deleteProperty
in classWorkflowTransitionResource
- Parameters:
transitionId
- the ID of the transition within the workflow.key
- the name of the property to add.workflowName
- the name of the workflow to use.workflowMode
- the type of workflow to use. Can either be "live" or "draft".
-