[Jira On Demand] An error occurred while creating jira issue with post condition as "Assign to Role"

Below is the configuration:

In Workflow, post condition is assigned to Create Issue transition and condition is Assign the issue to the default user from the Developer role (have kept unchecked check for (skip if Assignee).

when try to create Issue:

Now, jira logged in user is in developer role and trying to create new issue and

In Issue creation screen, Assignee field shows Automatically option selected in drop down.

On create issue, it shows below error:

Error creating issue: Issue workflow initialization error: unable to find Issue created with workflowId '11036'. Did the IssueCreateFunction run successfully on workflow.initialize() ?

Please share your comments to resolve this issue.

And also, please share your comments, post condition - skip if Assignee option available on Assign to Role condition, How it works.

Thank You.

1 answer

1 accepted

Hi Dhaval,

I've assisted you with this issue on support.atlassian.com, but I will answer this question here as well so anyone else experiencing this issue can find the answer.

This error happens when a Post function modifies the issue before it is created. In this case the "Assign to user" step is put before the "Create issue originally" post function. Thus the system tries to Assign a non-existant issue and gives this error. To solve this, simply move the Post Function step down so it runs after "create issue originally".

The Skip if Assignee option if checked will make it so JIRA ignores this post function IF the user creating the issue has selected an Assignee manually.



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,264 views 14 20
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