Jump to content

link attribute contains full_name of project


Erik

Recommended Posts

When getting the link attribute of for example a task it contains the full name of the project.

I think in most cases it would make more sense to include the name aka project code instead. 

And if replacing it is not an option please include both. Like this we have to do an additional query just to get the project code.

Link to comment
Share on other sites

We use it as a indicator of where in the tree structure you are at the moment like.

'.'.join([foo.get('name') for foo in bar.get('link')])

gives for example Project.sequence.shot.task

With the old api we do it in a recursive function using getParent and the end result is

project.sequence.shot.task

 

This is for a project where the Project name is Project and the Project code is project

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...