0

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"]])

enter image description here

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):

enter image description here

What Am I missing?

Thank you

Fabry
  • 1,498
  • 4
  • 23
  • 47

0 Answers0