I am using Azure DevOps Git Repo and Jira Cloud. There are 2 issues not if these are expected behavior when using Azure DevOps Git
https://marketplace.atlassian.com/apps/1220515/azure-pipelines-for-jira?hosting=cloud&tab=overview
1) After doing the build when it see the build result I do not see the JIRA ID under work item even though in the commit message I have included the JIRA ID, but the JIRA ID does show up in the Release work item
2) On the JIRA side when I go to the JIRA ticket in the “Releases” section I see “Undefined Environment”. On clicking on it I do see the release to which stages it has been deployed to. In the release configuration I have mapped each Stage to Deployment Type.
Very thanks for your detailed info shared.
For your first issue:
After doing the build when it see the build result I do not see the JIRA ID under work item even though in the commit message I have included the JIRA ID
This is a expected action. Until now, we haven't support display the Jira issue info in build result. The method we provided is viewing it in the work items tab of release pipeline. You can refer to this official doc to get this: Get Jira in VSTS working.
On the JIRA side when I go to the JIRA ticket in the “Releases” section I see “Undefined Environment”.
Unfortunately, until now, if you map your Stage into the Deployment type, it will not display these release record under the Deployment panel in Jira.
Please check this doc published from Jira: Viewing the development information for an issue. Until now, the Deplopyment Panel only support the source which come from below servers: