• Community
  • Products
  • Bitbucket
  • Questions
  • We are using Global Pull Request Organizr plugin for BitBucket. Is there a way we can add Labels/DueDates via scripts based on Jira Issue Date Fields?

We are using Global Pull Request Organizr plugin for BitBucket. Is there a way we can add Labels/DueDates via scripts based on Jira Issue Date Fields?

Saifuddin Tariwala September 8, 2016

We want to add Due Date/Labels based on the JIRA issue date fields?

1 answer

0 votes
Ulrich Kuhnhardt [IzymesDev]
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.
September 8, 2016

Hi there,

 

The Global Pull Request Organizr is a recent submission we are still working on publishing its REST Api documentation.

For now please use the following

Labels

POST http://host:7990[/bitbucket]/rest/organizr/latest/labels/projKey/repoSlug/pullrequestId
 
Payload JSON
{
  labels: ['label_a', 'label_b']
}

For DELETE and GET use the same URL

Due Dates

POST http://host:7990[/bitbucket]/rest/organizr/latest/meta/duedate/projKey/repoSlug/pullrequestId

Payload JSON
{
  duedate: due_date_in_seconds_unix_timestamp]
}

For DELETE and GET use the same URL

snasman August 21, 2018

hi! one problem with rest api call to organizr is that when you trying to Delete a label it deletes all the labels on the PR.  If you post a new label and there is existing label on the PR, new label will replace existing label on the PR, so you will loose all your old labels.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events