Assignee in post function not working

I have defined the following post function for Create Issue.
Creates the issue originally.
— THEN
The Assignee of the issue will be set to 764632.
— THEN
Re-index an issue to keep indexes in sync with the database.
— THEN
Fire a Issue Created event that can be processed by the listeners.
However, when using auto assign, the issue being sent to the project leader instead of the user defined in the post function.
If assigning to the user manually, it works.
There are no components defined for this project.
Any tips as to why the auto assign isn't working ?

2 answers

1 accepted

I can think of two possibilities.

1) You did not state that the "Update change history for an issue and store the issue in the database" is part of your post-function chain. Without this post action, the database will not be updated with your change.

2) if you do have that post-function does it occur before the assignee post action?

I do not believe it is a permission problem since you can do the action manually.

Thanks Norman.. I changed it to the following and it seems to have fixed it.

Creates the issue originally.
— THEN
Add a comment to an issue if one is entered during a transition.
— THEN
The Assignee of the issue will be set to 764632.
— THEN
Stores updates to an issue (no change history is created).
— THEN
Re-index an issue to keep indexes in sync with the database.
— THEN
Fire a Issue Created event that can be processed by the listeners.

Since this is an initial transition, I am not sure if you also need this post function or not.

"Set issue status to the linked status of the destination workflow step" I know you need it for any other transition. See this documentation:

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

You need to make the "assign" step the first in the list of post functions, as explained in this knowledge base article.

5. Add a post-function, 'Update Issue Field', and set the Assignee field to desired user (if necessary, create a draft so the workflow is editable)

6. Make sure the Post-function is the first step in the list

It seems counter-intuitive to set the assignee before the issue is created, but it seems to do the trick.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,232 views 14 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot