- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2023 09:42 PM
I have the Reference field u_jira_project on the incident table which is a reference field to u_jira_project table. When I click on the field u_jira_project to choose from the list of u_jira_project table, It shows me the column sys_id but I want to see instead the columns u_jira_name and u_jira_key of u_jira_project table. And after the user chose a project, i want the u_jira_name value will be shown inside u_jira_project on the incident table.
How can I achieve that?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2023 09:59 PM
Hi,
To display the "u_jira_name" and "u_jira_key" columns instead of the "sys_id" column in the reference field dropdown for the "u_jira_project" field on the incident table, you need to modify the reference field properties for that field.
Here are the steps to achieve this:
Navigate to the "Incident" table in ServiceNow.
Click on the gear icon and select "Configure" > "Form Layout".
Find the "u_jira_project" field on the form and click the gear icon to open the reference field properties.
In the reference field properties, go to the "Advanced" tab and click the "Add" button to add a new property.
Set the name of the property to "reference_qual" and set the value to the following script:
active=true^u_jira_nameISNOTEMPTY
This script will filter the list of u_jira_project records to show only the ones that are active and have a value in the "u_jira_name" field.
Add another property named "reference_columns" with the value "u_jira_name,u_jira_key".
Save the reference field properties and the form layout.
Test the changes by clicking on the "u_jira_project" field on an incident record. You should now see the "u_jira_name" and "u_jira_key" columns in the dropdown list.
To display the "u_jira_name" value inside the "u_jira_project" field on the incident table after the user chooses a project, you can use a UI policy with a script that sets the value of the "u_jira_name" field to the selected project's "u_jira_name" value.
Here are the steps to create the UI policy:
Navigate to the "Incident" table in ServiceNow.
Click on the gear icon and select "UI Policies".
Click the "New" button to create a new UI policy.
Give the UI policy a name and set the "Table" field to "Incident".
Set the "Condition" field to "true" to apply the UI policy to all incidents.
Under "UI Actions", click the "Add" button and select "Set Value".
In the "Set Value" form, set the "Field" field to "u_jira_project.u_jira_name".
Set the "Value" field to the script:
current.u_jira_project.u_jira_name
This script sets the "u_jira_name" field on the incident to the value of the "u_jira_name" field on the selected project.
Save the UI policy.
Now, when a user selects a project in the "u_jira_project" field on an incident, the "u_jira_name" field on the incident will be automatically populated with the selected project's "u_jira_name" value.
Thanks,
Rahul Kumar
Thanks,
Rahul Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2023 09:59 PM
Hi,
To display the "u_jira_name" and "u_jira_key" columns instead of the "sys_id" column in the reference field dropdown for the "u_jira_project" field on the incident table, you need to modify the reference field properties for that field.
Here are the steps to achieve this:
Navigate to the "Incident" table in ServiceNow.
Click on the gear icon and select "Configure" > "Form Layout".
Find the "u_jira_project" field on the form and click the gear icon to open the reference field properties.
In the reference field properties, go to the "Advanced" tab and click the "Add" button to add a new property.
Set the name of the property to "reference_qual" and set the value to the following script:
active=true^u_jira_nameISNOTEMPTY
This script will filter the list of u_jira_project records to show only the ones that are active and have a value in the "u_jira_name" field.
Add another property named "reference_columns" with the value "u_jira_name,u_jira_key".
Save the reference field properties and the form layout.
Test the changes by clicking on the "u_jira_project" field on an incident record. You should now see the "u_jira_name" and "u_jira_key" columns in the dropdown list.
To display the "u_jira_name" value inside the "u_jira_project" field on the incident table after the user chooses a project, you can use a UI policy with a script that sets the value of the "u_jira_name" field to the selected project's "u_jira_name" value.
Here are the steps to create the UI policy:
Navigate to the "Incident" table in ServiceNow.
Click on the gear icon and select "UI Policies".
Click the "New" button to create a new UI policy.
Give the UI policy a name and set the "Table" field to "Incident".
Set the "Condition" field to "true" to apply the UI policy to all incidents.
Under "UI Actions", click the "Add" button and select "Set Value".
In the "Set Value" form, set the "Field" field to "u_jira_project.u_jira_name".
Set the "Value" field to the script:
current.u_jira_project.u_jira_name
This script sets the "u_jira_name" field on the incident to the value of the "u_jira_name" field on the selected project.
Save the UI policy.
Now, when a user selects a project in the "u_jira_project" field on an incident, the "u_jira_name" field on the incident will be automatically populated with the selected project's "u_jira_name" value.
Thanks,
Rahul Kumar
Thanks,
Rahul Kumar