Hello @Mayki Gonçalves
An article about the Automation Management API is published in the Forums here:
Automation Rule Management API is now Generally Available!
According to that the documentation is found here:
And it does include an endpoint for creating a rule.
It supports management of Automation for both Jira and Confluence. Because of that it is necessary to identify the product and Cloud as part of the API calls:
https://api.atlassian.com/automation/public/{product}/{cloudid}/rest/v1/rule
You can find more information about getting those values here:
https://developer.atlassian.com/cloud/automation/api/base-paths/
thanks you very much @Trudy Claspill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Adding to the suggestions from @Trudy Claspill --
Other than for trivial rules, or ones created from the existing, built-in templates, creating a rule from scratch with the new REST API can be quite challenging.
There is virtually no documentation on the rule structure, component internals, product rule differences (e.g., Jira versus Confluence for the same component), etc. And even if there was such documentation, because the automation features and other endpoints continue to rapidly evolve, there would be no stable place to reference for help.
It may be easier to create a rule with the editor for use as your own "template", and then get that rule with one endpoint, modify the response JSON, and create a new rule with the create endpoint.
My ideas are based upon my experiences to build my own rule parser, creator, and executor outside of Jira...after a lot of analysis of exported rule JSON content from Jira.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To extend what @Trudy Claspill suggested there is an interesting trick related to automation rules! We used it with great success in the past.
If something is not possible through the official API, have a look at the network traffic between your browser and the Automation GraphQL API while using automations. They have several end-points that are not publicly documented, yet you can send requests to those. It is usedful if the official API alone is insufficient.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's great to know, thanks you very much Aron
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.