Assigning tasks based on "Other Role" ? | Community
Skip to main content
Level 4
May 2, 2024
Solved

Assigning tasks based on "Other Role" ?

  • May 2, 2024
  • 1 reply
  • 1402 views

Hello everyone,

 

One of our scenarios is updating task assignments depending on the user role. Everything is working fine if it's a Primary Role, but if the user has needed role as Other Role, the scenario does not see it. It sees only the Primary Role.

For example, the user has Primary Role as Manager - 75% and Other Role as Programmer - 25%, and I need to assign task to the Programmer, but the scenario does not see this other role. How can I get the Other Role value to be able to use it and assign the task?

Any thoughts or workarounds?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by KristenS_WF

I get this too, I just can't use it the way I need


I was able to tweak the custom API call in my test scenario to at least output the related jobs roles.  I'm still a Fusion newbie, so I'll defer to the more experienced here for how to iterate through the different roles in order to assign the tasks properly.

 

 

1 reply

KristenS_WF
Level 7
May 6, 2024

Well, I'm stumped.

userRoles are a collection under Users.  I have a user report that shows user roles, indicating percentages and what role is the primary (I'm guessing the text mode came from some a source somewhere here in the forum):

 

description="Primary" indicates the user's primary job role displayname=Job Roles (%) listdelimiter=<p> listmethod=nested(userRoles).lists textmode=true type=iterate valueexpression=CONCAT(IF({user}.{roleID}={role}.{ID},CONCAT("[Primary] ",{role}.{name}),{role}.{name})," (",{timePercentage},")") valueformat=HTML

 

In Fusion I can get the userRole IDs for a given user.  However I can't seem to then get the roles (roleID or role name) for them.

Hopefully someone can figure out that piece.

vioviAuthor
Level 4
May 7, 2024

Thank you for sharing.

Yes, that's the problem, that when I try to pull user role, there is only primary role in output, not the other

KristenS_WF
Level 7
May 7, 2024

In reporting I can display the user's primary role, all user roles, and the related job roles for those user roles:

I can get Fusion to output the multiple user roles, but I'm stuck at connecting those user roles to their related job roles: