-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Minor
-
Component/s: jira-steps-plugin
-
None
How I can get the status of a Jira task using jira-steps-plugin.Â
I have created a Jira task from Jenkins pipeline script and latter I want to retrieve the status of that task to continue further steps in my pipeline.Â
For example, when the task is updated as DONE, I need to trigger the deployment stage in my pipeline.
Â
This is what I used to create the task:
node {
stage('JIRA') {
def testIssue = [fields: [ project: [key: 'PROJECT'],
summary: 'New JIRA Created from Jenkins - Summery.',
description: 'New JIRA Created from Jenkins - Description.',
issuetype: [name: 'Task']]] response = jiraNewIssue issue: testIssue, site: 'JIRA' echo response.successful.toString()
echo response.data.toString()
}
}
Â
Â