Thought I'd dump some information here for those looking since there's almost nothing out there currently.
This is for Data Center.
I know of two Automation for Jira rest APIs that you might find useful:
- GET /rest/cb-automation/latest/project/GLOBAL/rule
- Will return all rules regardless of state and attributes of rules
- PUT/DELETE /rest/cb-automation/latest/project/GLOBAL/rule/[rule-id]
- I have not worked out how to make the PUT calls work however, I can delete
With these endpoints, you can do things like:
- return all rules and filter for inactive, not recently modified, and then delete
I've also developed some scripts for these functions. If you're interested, let me know.
I've also enquired of Atlassian as to why there's no public information on endpoints that I believe would have had documentation prior to the take over of the addon by Atlassian.
Have a good day.