Jira Trigger plugin for Jenkins: Obtaining Value from issue object
<p>I'm trying to set up some automation using Jenkins and Jira Trigger plugin for Jenkins. I've set up a web hook at Jira side which is able to invoke build on Jenkins as desired.</p>

<p>I've a trouble with obtaining value for a custom field from incoming Jira request. </p>

<p>I'm trying to use "Issue Attribute Path" feature and I've also referred to post (<a href="https://stackoverflow.com/questions/40590979/how-to-use-the-issue-attribute-path-in-the-parameter-mapping-of-jenkins-trigge">How to use the &#39;Issue attribute path&#39; in the parameter mapping of jenkins-trigger-plugin</a>)</p>

<p>Howevevr I'm still unable to get value for custom fields <code>customfield_10010</code>, <code>customfield_10011</code>. I've tried with mapping like <code>fields.customfield_10010</code>, <code>fields.customfield_10010.value</code>, <code>fields.customfield_10010.0.value</code>,<code>customfield_10010.0.value</code> and similar combinations. I'm able to get value for other standard fields as suggested in plugin help. ex: <code>status.name</code>, <code>description</code> etc.</p>

<p>I could not get any clue from <a href="https://docs.atlassian.com/jira-rest-java-client-api/2.0.0-m31/jira-rest-java-client-api/apidocs/com/atlassian/jira/rest/client/api/domain/Issue.html" rel="nofollow noreferrer">Jira documentation site</a> either.</p>

<p>Parts of incoming json data is below for easy reference.</p>

<pre><code>  "issue": {
            "id": "1000x",
            "self": "http://localhost:3080/rest/api/2/issue/10007",
            "key": "ABC-2",
            "fields": {
                "issuetype": {
                    ..
                },
                "parent": {
                    ..
                },
                "components": [

            ],
            "timespent": null,
            "timeoriginalestimate": 28800,
            "description": ".....",
            "project": {
                ..
            },
            "customfield_10010": [
                {
                    "self": "http://localhost:3080/rest/api/2/customFieldOption/10019",
                    "value": "ABC-Custom 1",
                    "id": "10019"
                }
            ],
            "fixVersions": [

            ],
            "customfield_10011": [
                {
                    "self": "http://localhost:3080/rest/api/2/customFieldOption/10021",
                    "value": "ABC-Custom 2",
                    "id": "10021"
                }
            ],
            .....
            ....
            ....
        }
    }
</code></pre>