How to target Jira tickets when deploying from a Git tag
Missing Information
When deploying from a Git tag, the Jira ticket IDs are not present on the commit details or PR. How can we tell Jira to update those tickets that were deployed from a tag?
With PRs/commits, we can use scan_commit_body: true, but for tags, it's unclear how to achieve a similar outcome. This is an important caveat, since most production deployments are usually triggered from Git tags, rather than branches.
Example for Git branches:
- deploy-product-staging:
context: lprd
post-steps:
- jira/notify:
environment: product-staging
environment_type: staging
job_type: deployment
scan_commit_body: true
Already Looked
- https://circleci.com/developer/orbs/orb/circleci/jira
- https://circleci.com/docs/jira-plugin/
Potential Locations
- https://circleci.com/developer/orbs/orb/circleci/jira
- https://circleci.com/docs/jira-plugin/
Hi @gazpachu thanks for asking about this, I will check with engineering and get back to you :-D
Hello @gazpachu. Sorry for the delay here, but in case you are still tracking this: From what I understand, you could use an annotated git tag and include the jira ticket ID in the annotation to ensure it gets picked up. Is that something you have tried?