Search code examples
jenkinsjenkins-pluginsjenkins-jira-trigger

How to use the 'Issue attribute path' in the parameter mapping of jenkins-trigger-plugin


I am willing to trigger my Jenkins job based on status change event from a JIRA issue. I am able to do it using jenkins-trigger-plugin. However I wish to get some more information about the issue like the description of the issue etc. I could see an environment variable named 'JIRA_ISSUE_KEY' but it gives me the key and nothing else.


Solution

  • As of the current release, the issue attribute path is currently resolved from this Issue object. All of jira-trigger-plugin configuration is documented in Jenkins help buttons, which is viewable in Jenkins job configuration.

    description for example is retrievable via description path (which would call issue.getDescription() essentially).