Hi Team,
I am trying to add an automation rule in Jira cloud to create a branch in Gitlab using condition: Send Web request
Below are the my settings:
Web request url: https://gitlab.com/api/v4/projects/<group_name>%2f<project_name>/repository/branches
HTTP Method: POST
Web Request body: Custom data
branch={{issue.customfield_10043}}&ref=main
Headers:
Headers "PRIVATE-TOKEN: glpt-xxxxxxxxxxx"
Content-Type: application/x-www-form-urlencoded
Note that i also tried to change the project id to use project_id instead of url encode
also, i tried with Content-Type application/json but still i am getting below error when trying to validate the web request.
Response code: 404
{
"message": "404 Project Not Found"
}
When i tried to run the same web request via curl POST command it works (meaning branch is created in gitlab).
Is there anything i am missing or not configured correctly ?
Please assist
Regards,
Azeem