Auto-set Universal Directories field value
Automation rule
If you need to automatically set the Universal Directories Select field value, you can use the Jira Automation feature (the Edit Issue action).
The Universal Directories custom fields are not available in the default list of fields to set, you should refer to the "Additional fields" section using the custom field name and the required option id. (Awaiting the Jira API improvement to make make the JSON structure easier to create).
![](../../__attachments/3253797479/image-20230428-053030.png?inst-v=0ec633b7-7887-4011-80be-da1f370f2441)
How to find option ID
Use the request as following: BASE_URL/rest/api/latest/issue/ISSUE_KEY/editmeta
It will provide you the list of editable fields within the issue. Find a Universal Directories field and the list of option with their IDs:
![](../../__attachments/3253797479/image-20230428-053048.png?inst-v=0ec633b7-7887-4011-80be-da1f370f2441)