I need to update some jira tasks from Jenkins pipeline. I can add a label to JIRA tasks in this way:
step([$class : 'hudson.plugins.jira.JiraIssueUpdater',
issueSelector: [$class: 'hudson.plugins.jira.selector.DefaultIssueSelector'],
scm : scm,
labels : ["MYLABEL-2"]])
The problem is that I would like to update also other JIRA tasks by providing a jql query, something like:
step([$class : 'hudson.plugins.jira.JiraIssueUpdater',
issueSelector: [$class: 'hudson.plugins.jira.selector.JqlIssueSelector'],
jql : "project = TEST AND id = TEST-11",
scm : scm,
labels : ["MYLABEL"]])
The previous code is not working (there are no logs):
What Am I missing?
Thank you