Expand my Community achievements bar.

The Community Ideas review for H1 2025 is out now, see which ideas our Product team prioritized and let us know your thoughts.
SOLVED

Tagging All Users & Teams Assigned To A Project

Avatar

Level 4

Hello,

 

Is there a way in Fusion to create an Update/Note on a Project which tags all of the assigned Users and Teams?

I did some searching but couldn't find an answer

 

Thanks in advance

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Would be neat if WF had an @here or @projectusers or similar. 

 

In Fusion, 2 options: 

  • use the project's projectUsers collection - with the caveat that this will include people that WERE once assigned but are not necessarily directly involved anymore. See "Manage the Project Team"
  • To ONLY get folks with assignments, you'll need to 
    • get assignments based on projectID
    • get the user/team assigned
    • deduplicate the result

View solution in original post

10 Replies

Avatar

Correct answer by
Community Advisor

Would be neat if WF had an @here or @projectusers or similar. 

 

In Fusion, 2 options: 

  • use the project's projectUsers collection - with the caveat that this will include people that WERE once assigned but are not necessarily directly involved anymore. See "Manage the Project Team"
  • To ONLY get folks with assignments, you'll need to 
    • get assignments based on projectID
    • get the user/team assigned
    • deduplicate the result

Avatar

Level 4

Sven,

 

I am successful in gathering all of the User IDs that are assigned to the tasks in my project but I am having trouble getting all of the Team IDs.

Here is my ASSGN/search API call:

Eric_D_Miller_0-1745930891049.png

 

Avatar

Community Advisor

team is a reference you can use on the assignment, e.g. include team:name  in fields - does that give you what you expect? 

 

Avatar

Level 4

Yes that gets me what I am looking for. Thank you.

 

Now the tricky part...can you add an array of people/teams to the Notify field in the Create/Note Module?

 

This is somewhat related, but the last post doesn't show how to apply an array:
https://experienceleaguecommunities.adobe.com/t5/workfront-fusion-2-0-questions/how-to-map-multiple-...

 

Avatar

Community Advisor

You need to create the object it expects: "tags" is an array of objects that have the ID and whether it's a team or a user.

{
  "tags": [
    {
      "objID": "ID of Team 1",
      "objObjCode": "TEAMOB"
    },
    {
      "objID": "ID of Team 2",
      "objObjCode": "TEAMOB"
    },
    {
      "objID": "ID of user 1",
      "objObjCode": "USER"
    },
    {
      "objID": "ID of user 2",
      "objObjCode": "USER"
    },
    {
      "objID": "ID of user 3",
      "objObjCode": "USER"
    },
    {
      "objID": "ID of user 2",
      "objObjCode": "USER"
    }
  ],
  "objID": "ID of the task",
  "noteText": "This is <b>the update</b>",
  "noteObjCode": "TASK"
}

 

SveniX_0-1746019270309.png

 

Avatar

Level 4

Sven,

 

Thank you for this. Where exactly do I create the object (set variable?) and where do I paste the code? In the Notify area?

Eric_D_Miller_0-1746108438969.png

Keep in mind that the people being tagged on the Update will only be the Users and Teams on the project. Thank you for the help so far!

Avatar

Community Advisor

before the module that creates the update you'd have to do the work to create the array of objects; then you click the "map" botton and set the "notify" field to that array. Something like below.

SveniX_0-1746519752809.png

 

Avatar

Level 4

Sven,

 

Getting closer, your instructions helped me get all of the assigned users tagged. Unfortunately there was one update posted per assignment. Two updates were even posted for one user since they were assigned twice.

 

How can I post only one update while tagging everyone assigned?

Avatar

Community Advisor

Can't tell from here. 

It sounds like there is an iterator that goes over all assignments, does some work, and ends in the create-record module. 

 

Original response: 

  • get assignments based on projectID
  • get the user/team assigned
  • deduplicate the result

Make sure you're doing the saearch with a customAPI module - NOT a search module. Reason: search implicitely iterates over the result set. We only want the data, no iteration.

 

SO

  1. search for assignments in the project and get team:ID and assignedToID.
    By definition, an assignment is either a role, a team or a user
  2. this should get you a set of assignments where each has either the teamID or the assignedToID set.
  3. You feed the correct list of IDs into the respective Iterator that has the blanks removed and the list deduplicated
    1. the user iterator needs a list of unique userIDs.
    2. the team iterator needs a list of unique teamIDs

e.g. to get the userIDs 

{{deduplicate(remove(map(14.body.data; "assignedToID"); null))}}

The my above flow would generate the respective teams and users blocks to use for the notification.

Avatar

Level 4

Sven,

That worked! Very insightful and helpful, THANK YOU!

 

You have once again helped me immensely in getting what I needed! Thanks again!