cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Workflows : copy tasks

tabpws
Participant

Anyone know how to copy a task in Workflows?

5 REPLIES 5

Peter_Youssef
Champion
Episode 20 of our #Dynatrace community practices gives us many tips and tricks around how to get started with Dynatrace Workflows. We have Igor Simoes, Principal Solutions Engineer at Dynatrace, who walks us through several best practices he developed while building automation workflows for our ...

Peter_Youssef
Champion

Hi @tabpws 

PFA steps for execution as an attempt, keep us posted with the findings.

Step1: Navigate to the Workflow Section

  • Go to the Automation or Workflows section where your workflows are stored. 

Step 2: Identify the Task to Copy

  1. Browse Existing Workflows: Find the workflow that includes the task you want to copy. This could be a predefined task or one you've created.
  2. View the Task: Open the workflow to review the task configuration and ensure it’s the one you want to copy.

Step 3: Copy the Task

While Dynatrace doesn’t have a direct "copy-paste" feature for tasks within workflows, there are some approaches you can take to replicate tasks:

  1. Clone the Entire Workflow: If the task you want to copy is part of a larger workflow, you may be able to clone the entire workflow. When you clone a workflow, the tasks within that workflow are duplicated.
    • Click on the workflow options and look for a clone or duplicate option.
    • Once cloned, you can modify the task within the new workflow as needed.
  2. Manually Create a New Task: If you can’t directly clone a single task, you can manually create a new task within a new workflow or an existing one.
    • Open the workflow editor and add a new task.
    • Use the same settings and configurations from the task you want to copy. You might need to manually copy over settings like custom parameters, conditions, or actions associated with the original task.
  3. Export and Import Workflows (Advanced): If you are using an advanced feature like API-based integrations, you might be able to export the workflow configuration in a JSON or YAML format and then modify it to create a new task. After modifying the exported file, you can import it back into Dynatrace.
    • Navigate to the export option in the workflow section.
    • Export the workflow configuration.
    • Edit the exported configuration file to duplicate the task section.
    • Import the modified workflow back into Dynatrace.

Step 4: Save and Test the Copied Task

After copying or creating the task, ensure that:

  • The task is saved in the workflow.
  • Test the workflow to ensure the copied task behaves as expected.

Step 5: Adjust and Fine-Tune

Once the task is copied, you can adjust any parameters or conditions to ensure it works as required in the new context. You can also apply it to other workflows or modify its logic if necessary.

Step 6: Review and Monitor

Once everything is set up, review your workflows and monitor their performance to ensure the copied task is functioning correctly within the new context.

Conclusion

Dynatrace doesn't have a direct feature for copying individual tasks within workflows, but you can clone entire workflows, manually replicate tasks, or export/import workflow configurations as a workaround.

Hoping it helps.

KR,

Peter

Hey Peter,

thanks so much for the such detailed notes you provided. Best Ive seen in a long while.

Being able to select Download from the 3 dots then choose Workflow (JSON) or Template (YAML) resolved my issue. Much appreciated.

 

Regards

Wayne

Hello @tabpws 

It's my pleasure, All the best.

BR,

Peter

MuhammadGamal
Observer

Featured Posts