Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible for a Bitbucket Pull Request to trigger Jira ticket creation?

Erik Macias
Contributor
May 6, 2019

Hi,

I am looking for a way to create a Jira ticket whenever a pull request is created in Bitbucket (against a particular branch).

I am familiar with Triggers on the Jira side via the workflow, but they are not available on the "create" transition, only available after (the ticket is created). 

I am open to any plugin suggestions, however the plugins I have found add a "create ticket button", and at the moment we would like this to be an automated action. 

We do not have scriptrunner for bitbucket and unfortunately this use case won't justify paying for the license (we have it for Jira and it works great, but may not be suited in this scenario, not sure). 

It appears as if creating a Hook may be the solution, but I have no experience with them, so I thought it be best to ask around for possible available solutions before digging into writing my own. 

Thanks,

Erik 

 

1 answer

0 votes
Bernardo May 7, 2019

Hello,

I think the way you wanted, its still not possible, but this article may have some workarounds 

https://confluence.atlassian.com/jirasoftware/blog/2015/07/workflow-automation-triggers


Erik Macias
Contributor
May 7, 2019

Hi @Bernardo,

Looks like the page just iterates what I found (or more precisely, what I didn't find) here, that the triggers are only available after the ticket is created. And that makes sense as the branch should have the ticket ID. Therefore the ticket ID must exists for Jira to "connect" to a branch. 

I think we may go with some sort of webhook listener (on the Jira side via Scriptrunner), post hook (on Bitbucket), or some form of script for this. 

Thanks for your response,

Erik 

Like Bernardo likes this

Suggest an answer

Log in or Sign up to answer