[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

5 votes
Accepted answer

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 Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

864 views 3 9
Read article

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