Automation for Jira
You can use Automation for Jira to update our Environment Custom Fields.

Automatically select an Environment in your Change Requests

Our customer's use case is to automatically select the Change Requests (Jira issues) target Environment, depending on the type of change, defined in the "Promotion Path" field (version, patch, production fix).
Here is the configuration in Automation for Jira:
  • WHEN the drop-down custom field "Promotion Path" is changed
  • IF the value of the "Promotion Path" is "Production Fix"
  • THEN the "Environment(s)" custom field is updated with the Environments "eCommerce Integration 1" (ID 5) and "eCommerce Staging" (ID 6)
Automation for Jira Cloud configuration
1
{
2
"fields": {
3
"Environment(s)": ["5", "6"]
4
}
5
}
Copied!
Note that the Environments IDs can be found in the XML export of your Jira issues: