i like to import json for creating a rule
Hi @SankaranarayananS You can make an export And after that, make an import here:Also, you can find more details here:Import and export Jira automation rules (Cloud)Import and export Jira automation rules (DC)
Hi @SankaranarayananS , welcome to the Atlassian Community and thanks for your post.
Did you have a question or something we can help you with?
Cheers
Hi @SankaranarayananS
Welcome to the community.
If you have a JSON that adheres to the structure required for this, see https://developer.atlassian.com/cloud/automation/rest/api-group-rule-management/#api-rest-v1-rule-post
Does this help you further?
Hi @SankaranarayananS -- Welcome to the Atlassian Community!
Adding to the ideas from @Marc -Devoteam- ...
While you may easily export rules as JSON and then import them later into another project, site, etc., creating a rule from scratch with JSON is not simple and the REST API documentation does not describe the actual structure and content of rules. There is some Data Center automation documentation to describe rule JSON and it is quite incomplete.
Instead, you would need to export the JSON from many different rule types and components for different Atlassian products, study them, and learn how rules are implemented to build any rule from scratch. Creating a rule from a built-in template with JSON is less difficult.
Kind regards,Bill
Just following up to check if this answered your question. If so, please consider marking this one as "answered". That will help others with a similar need find solutions faster. If not, please let the community know what help you need with the rule changes.
Thanks!
It looks like you're new here. Sign in or register to get started.