How to automatically assign issue to pull request author?

I'm trying to configure my Jira workflow scheme with automatic transitions based on actions performed on Bitbucket Server's Pull Requests. I've already bound "Merge" operation to "Close issue" transition and "Needs work" to "Reopen". 

However, I would also like to change Assignee when PR is merged or reopened. In our workflow, when Jira issue is closed or reopened, we assign it to a developer who was working on that issue. Typically, such developer is also a creator of the PR. I wonder if it's possible to e. g. create post function in the workflow scheme and get information about PR author to change the issue's assignee.

1 answer

1 votes

Hi Michal,

There is an outstanding Suggestion that you can find at Pull request REST API: Find by author, reviewer, date range, content that you can vote for to get the functionality you're looking for.  Take a look at the comments for some suggestions.

Another Suggestion to take a look at is BSERV-3856.  Both of these cases are regarding finding the information you're looking for at which point we'd be able to get that data to a custom field.



Thank you for a great suggestion! Eventually I found "Assign to last role member" built-in post function. It is good enough solution for me, as it works in typical situation (when someone ends his task, assign it to reviewer and than reviewer reopens it).

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot