jenkinsci / atlassian-jira-software-cloud-plugin

Atlassian Jira Software Cloud Plugin
https://plugins.jenkins.io/atlassian-jira-software-cloud/
Apache License 2.0
43 stars 46 forks source link

Send full project name to jira as display name. #44

Closed srnjak closed 3 years ago

srnjak commented 3 years ago

I fixed the issue JENKINS-64204.

As a display name for Jira it is used FullProjectName from buildwrapper.

nom3ad commented 3 years ago

Thanks, @srnjak. Hope this will be merged soon. Currently, I had to do this workaround to get the correct display name.

  def _displayName = currentBuild.displayName
  try {
    currentBuild.displayName = currentBuild.fullProjectName
    jiraSendBuildInfo site: jiraSite, branch: currentBranch
  } finally {
    currentBuild.displayName = _displayName
  }