Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I move components from one automation to another?

Alexander Wegener January 4, 2021

I have a few long and elaborate automation rules. I would like to move several components from one automation rule to another. What is the best way to do this?

2 answers

1 accepted

3 votes
Answer accepted
Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 4, 2021

@Alexander Wegener I don't think you can move only specific components to existing rules from the UI. If copying a rule is too cumbersome from the UI then may be you can try export the rule as JSON and modify the rule with additional components before importing it back.

Each component will have any existing id which you can leave as it because it will be given a new id in the new rule.

For example the following component will create 2 sub-tasks, when you copy it to another rule's json and reimport it then this new component will be appended. Of course it will only work when the required entities like issue type id are already there.

{

          "id": "29676130",
          "component": "ACTION",
          "parentId": null,
          "conditionParentId": null,
          "schemaVersion": 1,
          "type": "jira.issue.create.subtasks",
          "value": {
            "subtasks": [
              {
                "id": "_subid_1608309578519",
                "type": "10002",
                "summary": "Created by manual trigger"
              },
              {
                "id": "_subid_1608309611356",
                "type": "10002",
                "summary": "Created by manual trigger 2"
              }
            ]
          },
          "children": [],
          "conditions": []

}

Give it a try.

Ravi 

Alexander Wegener January 13, 2021

Thank you Ravi! That's what we did.

2 votes
Liam Green
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 4, 2021

Hi @Alexander Wegener 

You could copy the whole rule, then change the bits you need.

Hope that helps, 

Regards, Liam

Alexander Wegener January 4, 2021

Thanks, but unfortunately, that doesn't help. I have several rules already. I want to move the components from one rule into another existing rule, that already has other components.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events