I'm deploying using an azure-pipelines.yml file and the environment name is not getting resolved in Jira:

The yaml looks like this:
variables:
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/UAT') }}:
- name: environment
value: UAT
jobs:
- deployment: Deploy
environment: $(environment)
That variable is resolved properly by Azure DevOps (ADO) as part of the build, but from looking at the webhook call ADO made to the Jira app, it wasn't included. I'm guessing the app looked at my azure-pipelines.yml file and extracted the value directly. But maybe something else happened?
The environment name is UAT and I haven't explicitly mapped it to an environment type; I kind of hoped UAT would already be mapped to Staging. Regardless, I expected the name to still show in Jira correctly.