Is there a way to send a notification if a pull request is older then a few days?

I'm trying to find a pro active way to have a list of all PRs that have not been updated for more then 24 hours emailed to people. Is this possible? Is there anything within JIRA I can do to highlight this?


1 answer

0 votes

Bitbucket itself does not have anything like this. You could raise a feature request here.

However, if you are interested, you could probably build some form of this yourself.

You could write a cronjob that pulls the pull request API for open pull requests that have not been updated in the past n hours, then emails the reviewers. Should you want to take this further still, you could even write a Connect Add-On, publish it so that all Bitbucket users can use it.


To find the URLs of all pull requests that haven't been updated in the past 24 hours, this could be a starting point

$ curl "" -G --data-urlencode \
'q=state = "OPEN" and updated_on < '`date --date="-24 hours" -Iseconds` \
| jq '.values[].links.self.href'

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

302 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you