Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Best way to trigger bitbucket pipeline from JIRA project automation

In our setup we have created a Jira Project Automation which does the following: 

Trigger: When a release is created then it does: 

* Notify us on MS teams

* Send a web request to one of our Bitbucket repos to tag and build a specific pipeline 

* In the end of the the pipeline it calls back to a webhook in Jira Project Automation which then triggers a new pipeline in another pipeline/repo.  (This continues until all need pipelines are build in the specified order). 

The setup is as described in 

Currently we have setup the bitbucket API to authorize using Basic auth using the key as 

base64encoded(user:app password), where the app password is tied to one of our users. 

We would like to use a authorization method which is not tied to a specific user, but rather to our organization - however it seems such an APP password does not exist for the organization. The closest thing to this I would say would be OAuth Consumers, but this would then require an extra call to get a token as I see it and complicate the Webhook call. I have been able to get a token using: 

curl -X POST -u "key:secret" -d grant_type=client_credentials 

But I can't figure out how to get the token into the following webhook call to bitbucket.

So the question is: is there a better way to trigger the pipeline builds in bitbucket from jira?

0 answers

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

168 views 6 7
Read article

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