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.