Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira automation rule send web request issue

MAHAMMAD AZEEM
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 25, 2025

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

 

2 answers

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 25, 2025

Hi @MAHAMMAD AZEEM 

Welcome to the community.

In coding <> will not be correct, how do you provide the project ID, have you created a variable for this in the automation or set is to a default value?

Please show the automation rule in detail.

1. images that show your complete rule.

2. images showing the details of any relevant actions/conditions/branches.

3. images showing the Audit Log details for the rule execution.

0 votes
Sebastian Krzewiński
Community Champion
August 25, 2025

Hi @MAHAMMAD AZEEM 

 

Did you use <> in your url? For me this looks like an issue.

Did you try use same configuration e.g. in postman or in CLI?

 

Regards,

Seba

MAHAMMAD AZEEM
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 25, 2025

Hi Seba,

Thank you for the quick response.

Nope I didn't use <>

 

yes the curl request with same header data was successful, meaning able to create branch in gitlab .

 

Regards,

Azeem

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events