CircleCI-Public / jira-connect-orb

Display the status of CircleCI workflows and deployments in Jira!
https://circleci.com/orbs/registry/orb/circleci/jira
MIT License
25 stars 27 forks source link

Deployments to the same environment are treated as different environments #88

Closed ryanpf closed 1 year ago

ryanpf commented 1 year ago

Orb version

1.3.1

What happened

  1. A deployment failed, Jira was notified
  2. A future deployment succeeded, Jira was notified
  3. The deployment list for the issue on Jira shows overall failure

image image

Expected behavior

The deployment list for the issue should show only the latest deployment. The overall deployment status should be Success.

I think this is happening because the environment.id supplied is using CIRCLE_WORKFLOW_ID, which changes for every run. I think CIRCLE_PROJECT_REPONAME is a good candidate to replace the usage of CIRCLE_WORKFLOW_ID here. --arg envId "${CIRCLE_WORKFLOW_ID}-<<parameters.environment>>" I got this from the source code at https://circleci.com/developer/orbs/orb/circleci/jira

KyleTryon commented 1 year ago

Hello Friends 👋

The day has finally come 🎉 ! As we have alluded to in a few spots in this repository, we have been working on a new integration for Jira with CircleCI to replace this outdated orb which has historically been difficult for us to update. Today we are excited to announce Jira Integration V2 is finally LIVE!

New Docs: https://circleci.com/docs/jira-plugin/ Orb v2: https://circleci.com/developer/orbs/orb/circleci/jira Atlassian Forge App: https://github.com/CircleCI-Public/circleci-for-jira

Key Features

What to know