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.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For anyone, looking for ways to automatically assign a Jira issue from the commit message to the committer user or any other user, see this new DevOps automation guide: How to automatically assign a Jira issue to the committer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.