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
  • 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 class WorkflowTransitionResource
      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 class WorkflowTransitionResource
      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 class WorkflowTransitionResource
      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 class WorkflowTransitionResource
      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".