Assigning Issues based on Project Tyepahead field | Community
Skip to main content
Level 4
January 28, 2025
Solved

Assigning Issues based on Project Tyepahead field

  • January 28, 2025
  • 2 replies
  • 459 views

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?

Best answer by BrownPaperBag

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
Community Advisor
Community Advisor
January 28, 2025

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!

BrownPaperBag
BrownPaperBagAccepted solution
Level 3
January 29, 2025

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