circleci-docs icon indicating copy to clipboard operation
circleci-docs copied to clipboard

How to target Jira tickets when deploying from a Git tag

Open gazpachu opened this issue 2 years ago • 2 comments

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/

gazpachu avatar Aug 23 '23 13:08 gazpachu

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

rosieyohannan avatar Aug 24 '23 09:08 rosieyohannan

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?

rosieyohannan avatar Dec 08 '23 22:12 rosieyohannan