User Attribute
5 5

14 posts in this topic

Hi,

I am new to ftrack and scripting, but I am excited about creating custom attributes, but need a little help.

I successfully went through the tutorial for adding the Day Rate, Cost and Estimate attributes. However I wanted the the Cost calculation to use the day rate of each user, not a single project based value.

 

I have added a user attribute for day rate, but I need to sum all the day rates of Users assigned to the Task, multiplied by bid.

Any ideas on what the script would look like?

 

Cheers Nick

Share this post


Link to post
Share on other sites

Hi Nick,

 

Using User attributes in the Expression attributes are not supported at the moment. I guess you would do something like:

 

{self.bid * User.rate}

 

I will add it as a feature request to our internal backlog.

 

Best regards,

Mattias L

Share this post


Link to post
Share on other sites

Hi Nick

just to fill in on Mattias answer above. This week we are prioritising a lot of feature request for our upcoming releases and we should have a better answer early next week. If you don't see an answer in this topic next week you can just ping me at fredrik (at) ftrack.com

 

Cheers,

Fredrik

Share this post


Link to post
Share on other sites

Hi Nick,

we prioritised this yesterday as a high priority feature, so expect to see this soon in a coming release. With that said, expect a "lean and mean" version of our first stab at this. Maybe we only support that one user can be assign to the task for this to work (in ftrack you can assign multiple users to a task) etc. 

 

Cheers,

Fredrik

Share this post


Link to post
Share on other sites
18 hours ago, kyuho_choi said:

Hi,

Same issue..
How can I get value of custom user attribute in the "Create attribute > Expression"?

Is this issue solved?

And... Onemore Q 
Where is "User attribute" used?
and, how can I use it?

Share this post


Link to post
Share on other sites
On 11/26/2016 at 11:41 PM, kyuho_choi said:

Is this issue solved?

No, I'm afraid development of this feature got pushed and at the moment I do not have any dates for it. Is it the same use-case, to have a day rate attribute?

14 hours ago, kyuho_choi said:

Where is "User attribute" used?

You can use it from the Users & Groups page in system settings and see it on the sidebar for a user.

It is also possible to retrieve it from the API.

Share this post


Link to post
Share on other sites

Hello all, 

 

I'm having issues entering {self.bid} does not return a value. 

Trying to figure out basic values from these attributes

Bid Hours is  {self.bid} ? No value is returned

Worked Hours {self.worked} ? No value is returned.

Thanks for any help 

also if you have a web page with some of the basics expression might be nice 

 

 

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
5 5