Adding the id as a prefix of the title of a created elements

Each time I create an epic, user story, task or an issue I start the sequence, press the create button, then

  1. Wait for it to be created
  2. Copy the id from the url
  3. Edit the title
  4. Paste the id at the front of the title
  5. Save the element.

I do this to make it easy to link the element across different apps for my time keeping - toggl and team task management.

What would I have to change to automatically add the id as a prefix to the title when an elment is created?

Hi there!

There is no setting to do so. You could probably tinker something with the API and webhooks so that it autoupdates the name after creation.

On the other hand, if you are talking about the numerical id that appears on every item (as in #53), they are sequential so you should be able to guess them beforehand, depending on the number of items and how many people are working on the given project.

Best!

G’day Charlie

I know there is no setting to do this.

I have no problem with coding on the backend with Django.

I’m looking for where/what I’d have to change in the Taiga/Django backend to do this.

Cheers and thanks!

Keith

Hello there, Keith!

You could, for example, add a check in the save method (here it is for user stories). That executes every time an object is created or updated, so it’s best to have something like if not self.ref in self.subject or something like that to check before.

Of course, there are other ways to do it, like creating a service for example, and then calling it somewhere else in the code.

Hope this helps!

Best!

1 Like