Find out task is "completed" as duplicate and link to parent (duplicating) task in API?

Task API lacks strict information about task being closed as duplicate of other and identifier of this other task. Any one knows where to get it?

2 Likes

Hey @Mateusz_Bogusz,

Thanks for reaching out. As you mentioned, there is no specific ā€˜duplicate’ endpoint in the API.

Depending on what you’re trying to do, you should be able to figure out if a task is a duplicate by parsing the task’s name. When a task is marked as a duplicate, the string [Duplicate] is added to the front of the task name.

In order to find the other duplicate, you would need to parse the task story. The story object will say have the name of the other duplicate:

"text": "marked this a duplicate of task-name",

where task-name is the name of the other duplicate task. Unfortunately, there is no way to get the task id of the other duplicate.

Hopefully this helps – sorry there is not a more straight-forward way to get this via the API.

3 Likes

Really? People who gave Jeff these likes. I can’t even search task by ā€œtask-nameā€.

Hey @Mateusz_Bogusz,

answers here

1 Like

So the actual solution in 2018 was:

  • search the task-name for the word ā€œ[Duplicate]ā€
  • verify via task’s story

is this still true in 2024? I don’t think it is good solutions for 2 reasons:
a) Looking at every tasks story seems like a waste of resources and
b) the task’s title could easily be changed

Hi @Andre_Lung,

There’s not been anything added to the API that specifically identifies a duplicate, so things are pretty much the same as before.

What’s your use case? Are you looking to periodically check for dups? Or can you set up one or more webhooks to check tasks in real-time? What’s your goal here in finding dups?