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.



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:


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

821 views 3 9
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