-
New Feature
-
Resolution: Unresolved
-
Major
-
Jenkins v2.129 Jira-trigger v0.63 Jira v7.5.2
Hello,
We've added a webhook in Jira triggered by Comment Created and Issue updated, with the following SWL query:
project in ("Integrated Interior Platform","OIP 2.0","SSW Core") and issuetype in (Story,Task)
As the transition we're interested to use, Working to Verifying, has a custom event, StorytoWorking, we added a post function on it, to send also the event to the Hook, so this appears now in the webhook:
TransitionsVerifying of IIP Story Workflow W/o Delivered
In Jenkins, once the transition is done, I can see the event in logs:
Jul 24, 2018 10:52:58 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Webhook event body: Jul 24, 2018 10:52:58 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook { "transition": { "workflowId": 924280, "workflowName": "IIP Story Workflow W/o Delivered", "transitionId": 31, "transitionName": "Verifying", "from_status": "Working", "to_status": "Verifying"*strong text*
but the job isn't triggered. If I repeat the transition, I see comment_created, the second time, instead of issue_updated:
Jul 24, 2018 10:55:52 AM FINE com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Received Webhook callback from comment. Event type: comment_created Jul 24, 2018 10:56:08 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Webhook event body: Jul 24, 2018 10:56:08 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook { "transition": { "workflowId": 924280, "workflowName": "IIP Story Workflow W/o Delivered", "transitionId": 31, "transitionName": "Verifying", "from_status": "Working", "to_status": "Verifying" },
I've added the setup from Jira and Jenkins. Can you help?
PS: By comment the job can be triggered.
Thank you.
[JENKINS-52719] Post Function Transition Event support
Description |
Original:
Hello, We've added a webhook in Jira triggered by Comment Created and Issue updated, with the following SWL query: project in ("Integrated Interior Platform","OIP 2.0","SSW Core") and issuetype in (Story,Task) . As the transition we're interested to use, Working to Verifying, has a custom event, StorytoWorking, we added a post function on it, to send also the event to the Hook, so this appears now in the webhook: TransitionsVerifying of IIP Story Workflow W/o Delivered In Jenkins, once the transition is done, I can see the event in logs: Jul 24, 2018 10:52:58 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Webhook event body: Jul 24, 2018 10:52:58 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook { "transition": { "workflowId": 924280, "workflowName": "IIP Story Workflow W/o Delivered", "transitionId": 31, "transitionName": "Verifying", "from_status": "Working", "to_status": "Verifying"*strong text* but the job isn't triggered. If I repeat the transition, I see comment_created, the second time, instead of issue_updated: Jul 24, 2018 10:55:52 AM FINE com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Received Webhook callback from comment. Event type: comment_created Jul 24, 2018 10:56:08 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Webhook event body: Jul 24, 2018 10:56:08 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook { "transition": { "workflowId": 924280, "workflowName": "IIP Story Workflow W/o Delivered", "transitionId": 31, "transitionName": "Verifying", "from_status": "Working", "to_status": "Verifying" }, I've added the setup from Jira and Jenkins. Can you help? PS: By comment the job can be triggered. Thank you. |
New:
Hello, We've added a webhook in Jira triggered by Comment Created and Issue updated, with the following SWL query: {code:java} project in ("Integrated Interior Platform","OIP 2.0","SSW Core") and issuetype in (Story,Task) {code} . As the transition we're interested to use, Working to Verifying, has a custom event, StorytoWorking, we added a post function on it, to send also the event to the Hook, so this appears now in the webhook: TransitionsVerifying of IIP Story Workflow W/o Delivered In Jenkins, once the transition is done, I can see the event in logs: {code:java} Jul 24, 2018 10:52:58 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Webhook event body: Jul 24, 2018 10:52:58 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook { "transition": { "workflowId": 924280, "workflowName": "IIP Story Workflow W/o Delivered", "transitionId": 31, "transitionName": "Verifying", "from_status": "Working", "to_status": "Verifying"*strong text* {code} but the job isn't triggered. If I repeat the transition, I see comment_created, the second time, instead of issue_updated: {code:java} Jul 24, 2018 10:55:52 AM FINE com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Received Webhook callback from comment. Event type: comment_created Jul 24, 2018 10:56:08 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Webhook event body: Jul 24, 2018 10:56:08 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook { "transition": { "workflowId": 924280, "workflowName": "IIP Story Workflow W/o Delivered", "transitionId": 31, "transitionName": "Verifying", "from_status": "Working", "to_status": "Verifying" }, {code} I've added the setup from Jira and Jenkins. Can you help? PS: By comment the job can be triggered. Thank you. |
Description |
Original:
Hello, We've added a webhook in Jira triggered by Comment Created and Issue updated, with the following SWL query: {code:java} project in ("Integrated Interior Platform","OIP 2.0","SSW Core") and issuetype in (Story,Task) {code} . As the transition we're interested to use, Working to Verifying, has a custom event, StorytoWorking, we added a post function on it, to send also the event to the Hook, so this appears now in the webhook: TransitionsVerifying of IIP Story Workflow W/o Delivered In Jenkins, once the transition is done, I can see the event in logs: {code:java} Jul 24, 2018 10:52:58 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Webhook event body: Jul 24, 2018 10:52:58 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook { "transition": { "workflowId": 924280, "workflowName": "IIP Story Workflow W/o Delivered", "transitionId": 31, "transitionName": "Verifying", "from_status": "Working", "to_status": "Verifying"*strong text* {code} but the job isn't triggered. If I repeat the transition, I see comment_created, the second time, instead of issue_updated: {code:java} Jul 24, 2018 10:55:52 AM FINE com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Received Webhook callback from comment. Event type: comment_created Jul 24, 2018 10:56:08 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Webhook event body: Jul 24, 2018 10:56:08 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook { "transition": { "workflowId": 924280, "workflowName": "IIP Story Workflow W/o Delivered", "transitionId": 31, "transitionName": "Verifying", "from_status": "Working", "to_status": "Verifying" }, {code} I've added the setup from Jira and Jenkins. Can you help? PS: By comment the job can be triggered. Thank you. |
New:
Hello, We've added a webhook in Jira triggered by Comment Created and Issue updated, with the following SWL query: {code:java} project in ("Integrated Interior Platform","OIP 2.0","SSW Core") and issuetype in (Story,Task) {code} As the transition we're interested to use, Working to Verifying, has a custom event, StorytoWorking, we added a post function on it, to send also the event to the Hook, so this appears now in the webhook: TransitionsVerifying of IIP Story Workflow W/o Delivered In Jenkins, once the transition is done, I can see the event in logs: {code:java} Jul 24, 2018 10:52:58 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Webhook event body: Jul 24, 2018 10:52:58 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook { "transition": { "workflowId": 924280, "workflowName": "IIP Story Workflow W/o Delivered", "transitionId": 31, "transitionName": "Verifying", "from_status": "Working", "to_status": "Verifying"*strong text* {code} but the job isn't triggered. If I repeat the transition, I see comment_created, the second time, instead of issue_updated: {code:java} Jul 24, 2018 10:55:52 AM FINE com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Received Webhook callback from comment. Event type: comment_created Jul 24, 2018 10:56:08 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook Webhook event body: Jul 24, 2018 10:56:08 AM FINEST com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook { "transition": { "workflowId": 924280, "workflowName": "IIP Story Workflow W/o Delivered", "transitionId": 31, "transitionName": "Verifying", "from_status": "Working", "to_status": "Verifying" }, {code} I've added the setup from Jira and Jenkins. Can you help? PS: By comment the job can be triggered. Thank you. |
Issue Type | Original: Bug [ 1 ] | New: New Feature [ 2 ] |
Summary | Original: Jira-trigger: events sents from Jira don't trigger the job in Jenkins | New: Post Function Transition Event support |