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 10 months 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