Expand my Community achievements bar.

Assigning Issues based on Project Tyepahead field

Avatar

Level 4

How do I create a module in a scenario that assigns a user to an issue at the task level, by pulling in that user based on a user typeahead field at the project level?

2 Replies

Avatar

Level 6

Hey @OmahaOmaha, to do that you need to pull the ID out of the typeahead field. A typehead contains 3 fields arrayed together - objcode, name, and ID.

You can use a Set Variable module to break this apart and provide the ID for use in the task assignment. So your Variable Name can be something like "Value of ID in Typeahead" with the following code put into the value field:

{{join(remove(map(toArray(<<TYPEAHEAD_FIELD_HERE>>); "ID"); null); "||")}}

Then use the output that variable to make your assignments. 

 

If you like this answer, please mark it as correct! Have a great day!

Avatar

Level 4

Hi @OmahaOmaha 

 

An alternative approach would be to Parse the JSON output of the Typeahead read module using the method described in the following post.

 

https://experienceleaguecommunities.adobe.com/t5/workfront-fusion-2-0-questions/read-a-program-id-fr...