Auto-set Directories field value
If you need to automatically set the Directories Select field value, you can use Automation for Jira with an Edit Issue action.
The 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 id/name and the required Directories object id.
Directories Select (single) setting
![](../../__attachments/3257794660/image-20230427-224737.png?inst-v=0ec633b7-7887-4011-80be-da1f370f2441)
{
"fields": {
"customfield_10979": {
"id": "853"
}
}
}
Directories Select (multiple) setting
{
"fields": {
"customfield_11016": [
{"id": "853"},
{"id": "854"}
]
}
}
How to find the custom field ID
Navigate to the list of custom fields, find a required field, click a menu and hover the Configure link. You will see the field ID in the link path.
![](../../__attachments/3257794660/image-20230427-224830.png?inst-v=0ec633b7-7887-4011-80be-da1f370f2441)
How to find the Directories object ID
Navigate to the required Directories object card and click the Full Page button – the entry will be opened in a separate tab and the id can be found in the page URL.
![](../../__attachments/3257794660/image-20230427-224820.png?inst-v=0ec633b7-7887-4011-80be-da1f370f2441)
![](../../__attachments/3257794660/image-20230427-224804.png?inst-v=0ec633b7-7887-4011-80be-da1f370f2441)
Read more about custom fields editing: https://confluence.atlassian.com/automation/advanced-field-editing-993924663.html