Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to know if a user is a watcher in A PullRequest with Rest API?

Hi
I can't find a way to get the watchers of a Pull Request. Any idea ? 

1 answer

1 vote
Hana Kučerová Community Leader Nov 14, 2020

Hi @Jgafner ,

I've search through the REST API documentation and unfortunately I wasn't able to find any usable endpoint, which would provide such an information. There is only possibility to add/remove some specific watcher to/from pull request. So maybe you can send always POST request for addition to be sure, the user is there? What exactly are you trying to do? Thank you.

Hi @Hana Kučerová  

I wrote a plugin for IntelliJ same as Jetbrains wrote for GitHub but for Bitbucket server. 

I want user to be able to remove / add theme self as watchers. I can add always the two buttons but users will not know the current status and it is a bit annoying.

It is very strange that there is no endpoint for that.

 

tnx is anyway 

Hi @Hana Kučerová  Thanks for replying.

I couldn't find either an endpoint in the rest api doc, this is why I posted the question here hoping in a miracle :) 

I wrote an Intellij Plugin to work against the BB server and wanted to add the same option the user have in the browser to add / remove themselves as a watcher. 

I found this open Suggestion from 2014 but after 6 years I don't think it is going to be implemented.

 

Thanks again

Hana Kučerová Community Leader Nov 15, 2020

Hi @Jgafner,

I've added vote for this issue, but to be honest, I don't think it will help much :-(.

Like Jgafner likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Bitbucket

Contest: Share your custom Bitbucket Pipe and win

Announced in this blog, this holiday season we’re celebrating all things CI/CD and between now and the end of 2019 we’ll be showcasing content, use cases, feature announcements and more. One featur...

2,135 views 11 6
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you