# API Query - Original Task Name

**URL:** <https://forum.asana.com/t/api-query-original-task-name/470992>\
**Category:** API & Developers\
**Tags:** stories, tasks\
**Created:** [4 July 2023 15:01 UTC](https://forum.asana.com/t/api-query-original-task-name/470992 "2023-07-04T15:01:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben39](https://luna1.co/8d76cd.png) [@Ben39](https://forum.asana.com/u/Ben39)\
**Post date:** [4 July 2023 15:01 UTC](https://forum.asana.com/t/api-query-original-task-name/470992/1 "2023-07-04T15:01:42Z")

</div>

Is there a way to find the original name of a task that has had its name changed?  
Searching the “name\_changed” story sub-type, I can see what the task was renamed to but it doesn’t tell me what the name was changed _from_.

When viewing the task stories in Asana there’s the option to “View Original” that shows me the original task name, so was wondering if there’s a way to extract this through the api.

---

<div class="post-metadata">

**Author:** ![Larry\_Berger\_lpb](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/larry_berger_lpb/32/276017_2.png) [@Larry\_Berger\_lpb](https://forum.asana.com/u/Larry_Berger_lpb)\
**Post date:** [4 July 2023 15:43 UTC](https://forum.asana.com/t/api-query-original-task-name/470992/2 "2023-07-04T15:43:58Z")

</div>

Welcome, @Ben39,

I believe that, for now, the best you can do is this:

With:

> **[Get stories from a task](https://developers.asana.com/reference/getstoriesfortask)**
>
> Returns the compact records for all stories on the task.

. . . if there are two or more `name_changed` stories, then you can learn what the prior name was before the latest change, but only in that case, and never the very original name.

Thanks,

Larry

---

<div class="post-metadata">

**Author:** ![Frederic\_Malenfant](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/frederic_malenfant/32/8358_2.png) [@Frederic\_Malenfant](https://forum.asana.com/u/Frederic_Malenfant)\
**Post date:** [4 July 2023 15:44 UTC](https://forum.asana.com/t/api-query-original-task-name/470992/3 "2023-07-04T15:44:16Z")

</div>

Hi @Ben39 , welcome to the forum.

I think you may have found a bug in the stories.

As described in that thread:

> [@No more parsing story text! New fields on stories!](https://forum.asana.com/t/no-more-parsing-story-text-new-fields-on-stories/42924):
>
> Hey everyone, we have a new feature to announce! It’s less of a feature, though, and more of a plethora of new fields on stories. A while back, we added the resource\_subtype fields in our API to objects like tasks and custom fields. Stories also got this treatment, which some of you may have noticed, but we decided to take it a step further. Instead of just providing the subtype of the story, we now also provide a bunch of extra relevant data as new, structured fields! Here’s an example of a “d…

The story of type “name\_changed” should have 2 fields, “old\_name” and “new\_name”.

I just test it, using the opt\_fields parameter, and they are not returned.

In my test, when I ask these 2 values, I get “null” for all story, in the “new\_name” attribute, even in the one that is “name\_changed”.

And I never get any old\_name.

![image](https://us1.discourse-cdn.com/asana/original/3X/8/e/8e905597aa8c6d9475ab8c9ed19ed6799b261aec.png)

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [4 July 2023 16:01 UTC](https://forum.asana.com/t/api-query-original-task-name/470992/4 "2023-07-04T16:01:10Z")

</div>

cc: @John_Vu @Andrew-asana Bug in story API??

---

<div class="post-metadata">

**Author:** ![John\_Vu](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/john_vu/32/97235_2.png) [@John\_Vu](https://forum.asana.com/u/John_Vu)\
**Post date:** [5 July 2023 17:59 UTC](https://forum.asana.com/t/api-query-original-task-name/470992/5 "2023-07-05T17:59:05Z")

</div>

Hi everyone,

Hmmm I think @Frederic_Malenfant and @Phil_Seeman are right. This looks like a bug. I’ll check in with our API team to make sure. Will update once we have a fix/resolution.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [12 July 2023 17:59 UTC](https://forum.asana.com/t/api-query-original-task-name/470992/6 "2023-07-12T17:59:16Z")

</div>

Closed on 12 July 2023 17:59 UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
