Skip to main content
Skip table of contents

Select an Environment using the Option ID

In this use case, we automatically select the target Environment of our Change Requests (Jira issues), depending on the type of change defined in the "Promotion Path" field (version, patch, production fix).


Requirements

Golive Data Center, installed on Jira Data Center (not compatible with Jira Cloud)


Configuration

This is the setup for Jira Automation:

  • WHEN the drop-down custom field "Promotion Path" is updated.

  • IF the "Promotion Path" value is set to "Production Fix".

  • THEN update the "Environment(s)" custom field with the Environments "eCommerce Integration 1" (option id=5) and "eCommerce Staging" (option id=6).

Important

Option IDs are different from Environment IDs!

To learn how to retrieve the Option IDs for setting your environment's custom fields, refer to the Environment Custom Field Rest API documentation.

JSON
{
    "fields": {
        "Environment(s)": ["5", "6"]
    }
}

Questions?

If you need help with your Golive-Jira Automation integration, feel free to contact us.

JavaScript errors detected

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

If this problem persists, please contact our support.