Custom fields support SIL script
Product Discovery hides some custom fields from Jira's standard interface, making them difficult to reference in scripts. This page explains how to use a diagnostic SIL script that discovers hidden custom fields in Product Discovery projects.
Here’s what the script does:
Finds all custom field IDs in your Product Discovery projects.
Automatically generates SIL aliases for the discovered fields.
Creates aliases directly in your
sil.aliasesfile.Displays manual alias code and links to documentation if automatic creation fails.
For additional details, see How the script works section.
How to run the script
This script works on any Jira Cloud instance without modifications.
Create a new file in the SIL Manager.
Copy the script code from the code section below.
Click Run.
Monitor progress in the console tab at the bottom.
What to watch for when monitoring the script
Check your | Occasionally, line breaks can be missing at the end of the file (usually from manual editing), causing new aliases to merge with existing ones incorrectly. When aliases get combined this way, they become malformed and won't work properly. Example of a sil.aliases file with a line break issue causing aliases to merge incorrectly.
|
| Review error messages in the console output. If alias creation fails, the script displays the exact alias code to add manually and links to documentation for instructions. Console showing alias creation results with one error requiring manual fix.
For manual alias creation instructions, see the Managing aliases in the sil.aliases file page. |
Check known limitations. | Some behaviors and restrictions are documented in the Other known limitations page. |
Script code
The code below is longer and more complex than typical SIL scripts because it's designed to work on any Product Discovery setup without modifications. Don't let the complexity discourage you; most SIL automation is much simpler than this diagnostic tool.
How the script works
The script follows a two-step process: first, it discovers all custom field IDs in your Product Discovery projects, then automatically creates SIL aliases for those fields.
Step 1: Field discovery
The script uses two methods to discover fields, with progress and results displayed separately in the SIL Manager console for each method.
| Dynamic search | This scans all search Product Discovery projects and examines every idea to find populated custom fields. It automatically picks up new fields that Atlassian adds without requiring script updates. This method works because custom fields only appear in API responses when they contain data. By examining every idea across all Product Discovery projects, the script maximizes the chances of finding each field in at least one populated instance. |
| Static search | Also known as heuristic, this search uses a predefined list of known Product Discovery fields as a backup method to catch fields that weren't found in the dynamic search. |
Step 2: Alias creation
Once field IDs are discovered, the script generates camelCase aliases and adds them directly to your sil.aliases file. For example, 'Idea short description' becomes ideaShortDescription.
If alias creation fails, first check if the alias already exists in your sil.aliases file since this is the most common cause of errors. For manual creation instructions, see the Managing aliases in the sil.aliases file page.
Need support? Create a request with our support team.
Copyright © 2005 - 2025 Appfire | All rights reserved.
