Forums

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

How to assign a sub task to the current user who created the sub task

Marc Berthier
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 24, 2021

Hello

My issue have a current Assignee

With a transition (through the "Script Post-Function" " Create a sub-task") the current user (who is not the assignee of the issue) can create a subtask.

Can I have the exact script to paste in "Additional issue actions" to assign this sub task to the current user who created the sub task

Thank you

1 answer

0 votes
Adrien Low _ServiceRocket_
Community Champion
December 24, 2021

Hey @Marc Berthier ,

You should be able to set the Assignee of your new sub-task to the current user with the below script:-

issue.assignee = currentUser

Hope this helps.

Regards.

Suggest an answer

Log in or Sign up to answer