Package com.atlassian.jira.rest.v2.admin
Class WorkflowTransitionResource.ConstantResponseResource
java.lang.Object
com.atlassian.jira.rest.v2.admin.WorkflowTransitionResource
com.atlassian.jira.rest.v2.admin.WorkflowTransitionResource.ConstantResponseResource
- Enclosing class:
WorkflowTransitionResource
@Consumes("application/json")
@Produces("application/json")
public static class WorkflowTransitionResource.ConstantResponseResource
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.ResponsecreateProperty(long transitionId, String key, String workflowName, String workflowMode, WorkflowTransitionResource.PropertyBean body) Add a new property to a transition.jakarta.ws.rs.core.ResponsedeleteProperty(long transitionId, String key, String workflowName, String workflowMode) Delete a property from the passed transition on the passed workflow.jakarta.ws.rs.core.ResponsegetProperties(long transitionId, boolean includeReservedKeys, String key, String workflowName, String workflowMode) Return the property or properties associated with a transition.jakarta.ws.rs.core.ResponseupdateProperty(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:WorkflowTransitionResourceReturn the property or properties associated with a transition.- Specified by:
getPropertiesin 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:WorkflowTransitionResourceAdd a new property to a transition. Trying to add a property that already exists will fail.- Specified by:
createPropertyin 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:WorkflowTransitionResourceUpdate/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:
updatePropertyin 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:WorkflowTransitionResourceDelete 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:
deletePropertyin 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".
-