The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Configure Pull request description template via REST API

Lucky
June 6, 2024

Dear Community,

I want to configure my Bitbucket Data Center (Atlassian Bitbucket v8.9.12) repository Pull request description template in the pull requests section via the REST API.

2024-06-06_17h19_24.png

I've searched through the RESTI API documentation The Bitbucket Data Center REST API (atlassian.com) but could not find any documentation for that.

Any hint if this is possible via the REST API? Thanks!

Best Regards,

Lucky

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Lucky
June 7, 2024

Works with a PUT request against

/rest/ui/latest/projects/<project>/repos/<reposlug>/pull-request-templates

with this JSON payload

{
"description":"This is your description",
"enabled":true
}

But seems to not be officially documented in the Bitbucket Server REST API documentation. Just revere engineered it from the Web frontend.

TAGS
AUG Leaders

Atlassian Community Events