Skip to main content
Level 4
Jan 28, 2025 8:09 PM UTC
Solved

Assigning Issues based on Project Tyepahead field

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?

BrownPaperBag
BrownPaperBagAccepted solution
Level 3
Jan 29, 2025 1:39 PM UTC

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-from-a-typeahead-field/td-p/732478

2 replies

Daniel_Clarke
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Jan 28, 2025 9:16 PM UTC

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!

Translate
BrownPaperBag
BrownPaperBagAccepted solution
Level 3
Jan 29, 2025 1:39 PM UTC

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-from-a-typeahead-field/td-p/732478

Translate