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

Bitbucket/Jira Workflow Integration?

Pat Walters March 10, 2020

Is it possible to integrate Jira and Bitbucket in order to do the following workflow:


When a new PR is sent to Bitbucket with the Jira ticket, when the first approver sets his approval the Jira ticket goes from AVAIL FOR CODE REVIEW to IN CODE REVIEW.
When the second approver approves the PR, the ticket goes from IN CODE REVIEW to READY FOR TESTING.


Is this possible?

2 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Robert Giddings [Adaptavist]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2020

Hi @Pat Walters 

If you have ScriptRunner for Jira, then the Remote Events feature might be of interest to you. For example, it allows you to set up an Event Handler in Jira that listens to an event being fired in Bitbucket.

https://scriptrunner.adaptavist.com/latest/jira/remote-events.html

Please let me know if this is of help to you?

If you have ScriptRunner for Bitbucket instead of for Jira, I might be able to help with a similar solution.

Kind regards,

Robert Giddings

Product Manager, ScriptRunner for Bitbucket

0 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 10, 2020

The integration and workflow triggers only support these events:

  • Pull request created
  • Pull request merged
  • Pull request declined (Bitbucket only)
  • Pull request reopened (Bitbucket Server only)
  • Commit created
  • Branch created

So the events that happens when someone approves the pull request is not supported, not sure if any of the scripting apps, like Scriptrunner for Bitbucket, can trigger on approval event and then via the REST API move the issue in the workflow.

TAGS
AUG Leaders

Atlassian Community Events