Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gazpachu opened this issue Aug 23, 2023 · 2 comments
Open

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

gazpachu opened this issue Aug 23, 2023 · 2 comments
Assignees

Comments

@gazpachu
Copy link

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 rosieyohannan self-assigned this Aug 24, 2023
@rosieyohannan
Copy link
Contributor

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

@rosieyohannan
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants