Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger workflow transition from GitHub - How to get user from GitHub to add as assignee

Tilman Ulshoefer
Contributor
November 7, 2023

Dear everyone,

We use successfully the different triggers for branches and pull requests to trigger workflow transitions.

Now, we want to retrieve the user who created the branch/managed the pull request from GitHub to add them as assignee to the issue transitioned: Who knows how to set this up?

Kind regards, Tilman

1 answer

1 accepted

1 vote
Answer accepted
Guy Incognito
Contributor
November 12, 2023

Hi @Tilman Ulshoefer,

I don't think you can get the "current user" in a post function, without using some add-on such as Jira Workflow Toolbox.

The update issue functionality provided by basic Jira is very limited, and would only allow you to assign a specific user, or use the "Automatic" value, which would default back to the project default assignee.

My suggestion is to install JWT add-on and then use the "Update or copy field values" post-function to set assignee = current user

 

Best regards

Tilman Ulshoefer
Contributor
November 12, 2023

Thank you for your insights, @Guy Incognito

Suggest an answer

Log in or Sign up to answer