circleci / circleci-docs

Documentation for CircleCI.
https://circleci.com/docs/
Other
780 stars 1.3k forks source link

How to target Jira tickets when deploying from a Git tag #8305

Open gazpachu opened 11 months ago

gazpachu commented 11 months ago

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

Potential Locations

rosieyohannan commented 11 months ago

Hi @gazpachu thanks for asking about this, I will check with engineering and get back to you :-D

rosieyohannan commented 7 months ago

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?