TimeLog only if user is assigned to task

Hello There,

Is there a way to ensure that only a user that is assigned to the actual task, can log time in a given task ?

Just want to make sure we didn’t miss any simple way to do this through permissions before we go ahead and code something up!

Thanks! :slight_smile:
Meggie

2 Likes

Hi @Meggie

Thanks for writing in, we’ll be happy to help out here.

So, unfortunately, there isn’t a way to explicitly block a user from only selecting their user in the person field. If they have permission to change the person field (which is what tracks who the time log is for), then technically they can change that value to something else.

Having said that, when you create a new time log, it will always default to value to the user who is logged in. This should help ensure that time logs do not get created as blank.

Time_Logs___Kpop___RnD

May I enquire as to your use case here, are you trying to avoid users incorrectly setting the wrong user, or do you have another kind of workflow where people log time for other users perhaps?

If you have any further questions don’t hesitate to give us a shout.

Cheers,
Andrew

2 Likes

Hi Andrew,

It is not exactly what I was referring to.

I am looking to ensure that: in order for an artist to create a timelog on a given task, he MUST absolutely be assigned to the task. Currently, some artist log time in tasks that they are not assigned to.

Does this make sense ?
Thanks :slight_smile:

Meggie

1 Like

Hi @Meggie,

It’s a bit tricky here. There is no way to set up conditional permission on entity creation as the entity is not created thus no way to validate the conditional ruleset.

And Task.Time Log field on Task entity is a system calculated field which queries all the time log entry on a give task. We cannot apply conditional permission ruleset as well on the “special source” field.

With that being said, the only workaround I could think of is to limit users to see tasks they are assigned only, which will prevent them from logging time on they are not assigned to.

Does it sound like a plan for you?

Ben

2 Likes

Hi Ben!

Thanks for you response. This is what we are currently doing.
:slight_smile:

We are looking for force mesures! haha.

We will see what can be done under the hood, but I think Education of the artists is the way to go!

Have a great day!
Meggie

1 Like