EducationPerfect / azure-jira-update

Update Jira with Azure Deployment Information
MIT License
21 stars 17 forks source link

The Deployment does not have an associated Jira issue key goes in error #12

Open stwe11 opened 1 year ago

stwe11 commented 1 year ago

We have encountered a persistent error while running Add-JiraDeploymentInformation.ps1. When executing the integration without an associated issue key in Jira, an error occurs. The error message received is as follows:

Invoke-RestMethod: /agent/_work/23/s/EP.PowerShell.JiraDeployInfo/Public/Add-JiraDeploymentInformation.ps1:181 Line | 181 | … $response = Invoke-RestMethod -uri "https://api.atlassian.com/jira/de … | ~~~~~~~~~~~~~ | [{"message":"Associations must provide at least one value."}]

It appears that the issue stems from the Jira API, which no longer accepts association properties without a value.

image

mwheeler-ep commented 8 months ago

If you are using update-jira.yml it has continueOnError set so this should only generate a warning in your build steps.