Hi community people!
This is what I want to achieve:
In a JSM form the user filling in this form must select the name of a person (from Assets). Based on this selection the mobile phone number of the person (from Assets) is displayed automatically in another field in the JSM form (from Assets).
This is what I have configured:
Assets:
Schema: People
ObjectType: People
Attributes:
- Name (label) -- contains full name, e. g. John Doe
- User name -- contains e-mail / unique
- Mobile -- contains mobile phone number, e. g. +49 123 456789
To select the name the JSM form has a field "Name" (type is "Asset Objects"),
which is linked to a Jira field (type is "Asset Object")
with this configuration:
(customfield_16896)
- Object schema: People
- Filter scope (AQL): objectType = People
- Filter work item scope (AQL): None
- Allow search filtering by these attributes: Name, User name
- Object attributes to display on work item view: Name, User name
- Object attributes to display on customer portal request details view: Name, User name
--> This works fine and the user of the JSM form can select the name of the person from Assets.
To automatically display the mobile phone number the JSM form has a field "Mobile phone numer" (type is "Asset Objects"),
which is linked to a Jira field (type is "Asset Object")
with this configuration:
- Object schema: People
- Filter scope (AQL): objectType = People
- Filter work item scope (AQL): Name = ${customfield_16896.label}
- Allow search filtering by these attributes: Mobile
- Object attributes to display on work item view: Mobile
- Object attributes to display on customer portal request details view: Mobile
--> This field does not automatically show the mobile phone number after a person is selected. Only when the user actively uses the field, the mobile phone number becomes visible and only the mobile phone number of the selected person can be selected.
How can I make the mobile phone number visible automatically without any user interaction necessary?