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: 

How to update the due date in a pull request in bitbucket server

J. E.
November 19, 2019

In Stash/BitBucket server (v5.14.1) I would like to automatically change the due date of a pull request through the REST API, either when creating the pull request or by updating it.

stash_due_date.jpg

Looking through the REST API docs, looking at the put command for:

/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId} (https://docs.atlassian.com/DAC/rest/stash/3.11.6/stash-rest.html#idp3306480)

it looks like 'createdDate' and 'updatedDate' are the only date fields accepted?  So how do I programatically change the 'due date'?

Cheers

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 21, 2019

Hi,

Due dates are not native functionality of Bitbucket Server, and it appears that this is provided by this app: https://marketplace.atlassian.com/apps/1215843/global-pull-request-organizr?hosting=server&tab=overview

Contact the vendor to ask if their app offers a REST API.

Cheers,

Christian

Premier Support Engineer

Atlassian

J. E.
December 2, 2019

Hey Christian,

Thanks for the reply.  Doesn't look like we're using that plugin, but rather a custom field?  Is there a way to query custom fields through the REST API?

Cheers

J. E.
August 25, 2020

Actually, turns out we _are_ using that plugin!

I was able to get the information I needed from it's REST API: https://bitbucket.org/izymesdevteam/organizr/wiki/Organizr_REST_API

Ulrich Kuhnhardt _IzymesCo_
Atlassian Partner
October 25, 2021

I hope you are enjoying Organizr. Let us know if you have any questions or suggestions.

TAGS
AUG Leaders

Atlassian Community Events