I'm looking for a method to trigger remote Jenkins job based on Jira workflow status. The idea is to create a Jenkins job which is to be triggered based on Project Manager's approval. When task gets approval status then Jenkins should trigger the job in project. Please help me on this.
Note: I have created a webhook in Jira and configured required plugins in Jenkins.
If I Understood correctly the question, you want to trigger the Jenkins Job when the Jira Item(task/ticket) is in particular state(e.g. Approved, In-progress).
You possibly need to have following Plugins:
Before creating a job which will triggered based on Jira Item status, you need to have JIRA webhook integration.
The KEY* is the TICKET PATTERN required to integrate with Jenkins. Please find a link which explains a simple use case in here
While creating jenkins job, you will get under category 'Build Trigger' additional option 'Build when issue is updated in JIRA'
.
After this be keen to update JQL Filter
as per your need.