Class RuleResource

java.lang.Object
com.codebarrel.jira.plugin.automation.rest.RuleResource

@Component @Path("project") @Consumes("application/json") @Produces("application/json") public class RuleResource extends Object
  • Constructor Details

  • Method Details

    • generateSecureToken

      @GET @Path("{projectId}/securetoken") public jakarta.ws.rs.core.Response generateSecureToken(@PathParam("projectId") String projectId)
    • getRules

      @GET @Path("{projectId}/rule") public jakarta.ws.rs.core.Response getRules(@PathParam("projectId") String projectId)
    • export

      @GET @Path("{projectId}/rule/export") public jakarta.ws.rs.core.Response export(@PathParam("projectId") String projectId)
    • export

      @GET @Path("{projectId}/rule/{ruleId}/export") public jakarta.ws.rs.core.Response export(@PathParam("projectId") String projectId, @PathParam("ruleId") Long ruleId)
    • parseImport

      @POST @Consumes("multipart/form-data") @Path("{projectId}/rule/import/parse") public jakarta.ws.rs.core.Response parseImport(@PathParam("projectId") String projectId, @HeaderParam("Content-type") String contentType, Collection<com.atlassian.plugins.rest.api.multipart.FilePart> fileParts)
    • importRules

      @POST @Path("{projectId}/rule/import") public jakarta.ws.rs.core.Response importRules(@PathParam("projectId") String projectId, ExternalizedRuleConfig importRequest)
    • validateOutgoingWebhook

      @POST @Path("{projectId}/rule/outgoing-webhook/validate") public jakarta.ws.rs.core.Response validateOutgoingWebhook(@PathParam("projectId") String projectId, OutgoingWebhookValidationRequest validationRequest)
    • createRule

      @POST @Path("{projectId}/rule") public jakarta.ws.rs.core.Response createRule(@PathParam("projectId") String projectId, com.codebarrel.automation.api.config.RuleConfigBean ruleConfigBean)
    • updateRule

      @PUT @Path("{projectId}/rule/{ruleId}") public jakarta.ws.rs.core.Response updateRule(@PathParam("projectId") String projectId, @PathParam("ruleId") Long ruleId, @QueryParam("dryrun") boolean dryrun, com.codebarrel.automation.api.config.RuleConfigBean ruleConfigBean)
    • addLabelToRule

      @PUT @Path("{projectId}/rule/{ruleId}/label/{labelId}") public jakarta.ws.rs.core.Response addLabelToRule(@PathParam("projectId") String projectId, @PathParam("ruleId") Long ruleId, @PathParam("labelId") Long labelId)
    • removeLabelFromRule

      @DELETE @Path("{projectId}/rule/{ruleId}/label/{labelId}") public jakarta.ws.rs.core.Response removeLabelFromRule(@PathParam("projectId") String projectId, @PathParam("ruleId") Long ruleId, @PathParam("labelId") Long labelId)
    • executeScheduledRule

      @POST @Path("{projectId}/rule/{ruleId}/execute") public jakarta.ws.rs.core.Response executeScheduledRule(@PathParam("projectId") String projectId, @PathParam("ruleId") Long ruleId)
    • executeManualRule

      @POST @Path("{projectId}/rule/{ruleId}/execute/{issueKey}") public jakarta.ws.rs.core.Response executeManualRule(@PathParam("projectId") String projectId, @PathParam("ruleId") Long ruleId, @PathParam("issueKey") String issueKey)
    • deleteRule

      @DELETE @Path("{projectId}/rule/{ruleId}") public jakarta.ws.rs.core.Response deleteRule(@PathParam("projectId") String projectId, @PathParam("ruleId") Long ruleId)