How do I use a hash variable created with variables inside js code ?

Confluence User - 22 Jun, 2022

Hi,

Through the javascript code I went to get the username that appears in the select box "Colaborador" to put in the hash variable "#user.USERNAME.department.name#".

The result appears in the field below, but it shows the hash variable statement instead of actual value (in this case the departments associated with the user). What do I have to change for this to work ?

javascript;hash-variables;forms

1


22 Jun, 2022
confluenceUser
confluenceUser

You'll need to parse the hash variable. 

Use a bean shell hash variable with departmentUser var passed as a parameter

Hash Variable - Knowledge Base for DX 7 - Joget | COMMUNITY

and use AppUtil.processhashvariable

AppUtil - Knowledge Base for DX 7 - Joget | COMMUNITY


Sample Reference:

jw-community/EmailTool.java at 7.0-SNAPSHOT · jogetworkflow/jw-community (github.com)

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print