Wrike Integrate - Example recipe to copy the value from a project-level custom field to all new tasks within that project

Prerequisites

  • Wrike Business or Wrike Enterprise (in order to use custom fields)
  • Wrike Integrate (paid add-on)
  • Wrike custom text field named Wrike Integrate (available to tasks, used to distinguish new tasks vs. updated tasks)
  • Wrike custom field to be copied from project to tasks (available to both projects and tasks, example recipe uses a text field named Client)

When creating custom fields used in Wrike Integrate recipes, we share some of these fields only with our Wrike Admins as appropriate, so other users can't see or change the value in these fields. Keep in mind that the user linked to your Wrike Connector in Wrike Integrate will also need access to these fields in order to see/update them.

Recipe results

This recipe will trigger only for new tasks, and will drill upwards up to 4 levels looking for the task's project (allowing for up to 3 levels of nested sub-folders within each project). Any value found in the project-level Client custom field will be automatically copied to the task-level Client custom field.

Important caveats

  1. Because this recipe triggers only for new tasks, it will work only if you create the task within a project. If you create tasks then move them into a project, this recipe will not populate those tasks' custom fields.

  2. This example recipe only traverses 4 levels of parent folders to look for the task's project. If you use more than 3 levels of nested sub-folders in your projects, you will need to modify this recipe to handle your desired number of nested sub-folders.

  3. This recipe doesn't update the custom field value on existing tasks if the project's custom field value changes. That's possible, but would require a different approach in a separate recipe.

Wrike Integrate recipe example

https://www.workato.com/recipes/1102960

4
1 comment
Spot On Innovative Approach Stellar Advice
Avatar

Hi Laura - This is amazing and very helpful. I appreciate your work and documentation of the steps. I was able to get it to work after changing the variable names quickly. Below are my two use cases and associated error on the second one.

First Use Case: Simple task addition 
  Test Structure - Space > Folder > Folder > Project (with custom field) > Task
  Status - Success! The custom field was copied as expected. :D

Second Use Case: Sub-task addition
  Test Structure - Space > Folder > Folder > Project (with custom field) > Task > Sub Task 
  Status - Error - 400 Bad Request: {"errorDescription":"Operation is not allowed for logical folder","error":"invalid_request"}

It seems like the "Wrike - Get folder by id" action can't handle sub-tasks. 
https://docs.workato.com/connectors/wrike/get-folder-by-id-action.html

Have you encountered this? 

Thanks!


0
Comment actions Permalink

Folllowing List for Post: Wrike Integrate - Example recipe to copy the value from a project-level custom field to all new tasks within that project
[this list is visible for admins and agents only]

Didn’t find what you were looking for? Write new post