Assign issue to current user on create?

Ingvar Örn October 21, 2013

Is it possible in Jira 6.1 to use a postfunction in "Create issue" to set Assignee to CurrentUser?

When setting values for a custom field I can assign the variable %%CurrentUser%%, but this option seems not to be available for system fields (like assignee).

3 answers

1 accepted

1 vote
Answer accepted
RicardoA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 21, 2013

Hi Ingvar

This is possible, you just need to add the 'Assign To current user' post function on the Create Transition step in your workflow.

Check this documentation:

http://confluence.atlassian.com/display/JIRA/Configuring+Workflow#ConfiguringWorkflow-Applyingpostfunctionstotransitions

Hope it Helps,
Ricardo Carracedo.
Ingvar Örn October 21, 2013

Ah! I didn't see this option at the top of "Add Post Function To Transition" list! Was fiddling with the "Update issue field" at the bottom.

Now, the post function "Assign to Current User" does not work for me, the issue always gets assigned to project lead.

HOWEVER, "Assign to reporter" does the trick, it sets the reporter (who is current user) as the assignee.

Thanks for your reply.

4 votes
Ingvar Örn October 21, 2013

(In "Create issue" use post function "Assign to reporter" since "Assign to current user" did for some reason not work for me.)

I found out why issue wasn't assigned to Current User. When adding postfunction "Assign to current user" it is automatically placed in 2nd position, after "Creates the issue originally". I had to move it up into 1st line to get it to work.

Nicolò T February 14, 2019

True, works placing "Assign to current user" in first position :-)

Like Oleksandr Syvushenko likes this
Oleksandr Syvushenko September 3, 2020

Also you need to delete "change assignee" screen on this transition, for postfunction works well.

Suggest an answer

Log in or Sign up to answer