Search and replace text

Hello, I needed to do a similar thing, and I managed to do it by writing a script.

I used the following tools, but you can use any major programming languages you know, and the personal access token can be directly written in the code (“hard-coded”):

# coding=utf-8

import asana
import os

client = asana.Client.access_token(os.environ['ASANA_ACCESS_TOKEN'])
tasks = client.projects.tasks('11111111') # Add your project GID

old_text = 'Old text'
new_text = 'New text'

for task in tasks:
    if old_text in task['name']:
        client.tasks.update(task['gid'], {'name': task['name'].replace(old_text, new_text)})

I hope this helps, and I also hope Asana implements it’s own feature to search and replace the text.

5 Likes

Hi @Katie! Would it be possible for you to provide an update as it pertains to this feature request? This is something I deal with daily… for example, I ran 16 templates within the last 24 hours and have had to manually rename hundreds upon hundreds of tasks that either a variable text field or a bulk edit feature would resolve. I would truly :heart: :heart: :heart: this feature! Thanks for your insights in advance!

5 Likes

Just to underline the Find and Replace question - a fairly new Asana users trying to set up templates and have hit the same issue - renaming the client name fields. Find and replace would be excellent

Hi guys, I don’t know if this helps, but I found a Chrome extension, which works without a problem …

Sorry Guys it didn´t work, and I can’t delete my first reply.

I agree this would be incredibly helpful. I have to cut and paste the name of our install facility into every task of a templated project and some of them have 80 tasks. It’s very time consuming.

Adding find and replace would easily save me several hours per week. I’m a content production manager, and our templated projects have many tasks which include the project name. Currently I have to manually copy/paste every one.

I just tried the Find & Replace plugin you mentioned and it worked to rename a bunch of tasks in a project. Thanks! I’m using Chrome on a Mac.

1 Like

This feature would be AMAZING. Please Asana, make it happen! It looks like it’s been requested for over four years now, so maybe you’re about to publish it? Fingers crossed!

1 Like

when you refresh the page the text you replaced will revert back, right? I used the same extension and it did this. So it was changing the text you saw on the web page, but not the actual embedded text in the project.

1 Like

I found the same to be true and it is highly frustrating.

Bumping this topic as we are templating out workflows that are from initial customer contact all the way through our own factory’s production so this can save us hundreds of hours per year. I’m happy to talk to the decision makers who tell us that they’re always looking to improve client experience. This is a biggie for the Asana super users who are trying to really maximize the platform. This thread is evidence.

This is VERY Necessary, Where is Asana Dev with this option?

1 Like

Yep, and also find and replace within the task templates would be a nice addition too :slight_smile:

2 Likes

+1 for me as well.

My working case scenario is having to replace text for a specific task or description for many projects. Would be great if I could do a find/replace for all of Asana account.

I need search and replace in Asana too!

I’d love to be able to do this, too. My use case: I needed to use the same names (state names) for the “name” field for two different tables. (I know, not awesome) However, there is a parenthetical after the name in the copy/paste from one table to another. I’d really like to find/replace the parenthetical instead of re-typing.

I can make a formula field for this, but since you can’t use a formula field for the primary field, it won’t be as great.

Had the same issue and tried to find another alternative. FoxReplace works like a charm in Firefox.

Has this been added to Asana?

1 Like

I created a tool to find and replace a pattern in a given project, could be quite easily extended to the entire account.

1 Like