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 vote

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.

Cheers,

Branden

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).

I can't seem to find the "Assign to last role member" anywhere in my default options. I am using Jira Cloud. Has anything changed?

When you add new post function, you must choose "Script post-function" and then you will see additional ready-to-use functions:

2018-02-27_15h18_21.png

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

165 views 0 2
Read article

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