Skip to main content
Skip table of contents

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

CODE
{
    "fields": {
        "customfield_10979": {
        "id": "853"
        }
    }
}

Directories Select (multiple) setting

CODE
{
    "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.

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.

 

 Read more about custom fields editing: https://confluence.atlassian.com/automation/advanced-field-editing-993924663.html

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.