...
https://YOUR_USER:YOUR_PASSWORD@your_jira_base_url/rest/restfulintegrator/1.0/incoming/gitlab_comment
Manage the incoming request from Incoming Webhooks
Navigate to Incoming Webhooks
Click New Rule
Name it GitLab
Add a condition to the rule with operator ~ and value gitlab_issue
Add Flow
Add a condition with operator ~ and value gitlab_comment
Save the rule
So far we have just added the rule, now we need to build the actions that receives the call.
Create a GitLab authentication
Navigate to Credentials
Select Custom Header
Enter the name GitLab
Click Create
Add a new header with the following key/value
PRIVATE-TOKEN | generate token from Avatar->Edit Profile->Access Token and paste it in here in the value field |
Add Actions in Integrations
Click New (Action)
Select Template Category: Jira Core
Select Template: Create Issue
Click Create
Select a basic Auth Jira user see Basic Auth
Add Body
Code Block { "fields": { "project": { "id": "12200" }, "summary": "{{object_attributes.title}}", "issuetype": { "id": "10001" }, "reporter": { "name": "kg" }, "labels": [ "gitlab" ], "description":"{{object_attributes.description}}", "customfield_10201":"{{object_attributes.id}}" } }
...