link attribute contains full_name of project
2 2

4 posts in this topic

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.

Share this post


Link to post
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

 

 

Share this post


Link to post
Share on other sites

I see. We are doing like this to get the structure:

        while entity['parent'].entity_type != "Project":
            entities.append(entity['name'])
            entity = entity['parent']

Share this post


Link to post
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
2 2