Forums

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

Bitbucket API to Enable "Jira issue commit checker" In Project/REpo Settings

tolga
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!
September 19, 2023

Hi, 

I want to enable the "Jira issue commit checker" value as "Must contain a Jira issue key" option in bitbucket project or repository. I can do it by GUI. But I need an API to do that action. 

I am using Bitbucket version as v8.9.1 currently. In the latest REST API documentation I didn't find that kind of information. 

Can you help for that? Thank you :)

1 answer

1 vote
Jonathan
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!
January 18, 2024

From my findings you can use this:

PUT on:

https://your.git.org/rest/jira-commit-checker/latest/projects/PROJECTKEY/repos/REPOSITORYKEY

 

Payload:

{
"hookState": "REGEX_MATCHING",
"exemptPushers": [],
"exemptCommitMessages": [],
"ignoreMergeCommits": true
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events