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

dhaval soni
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.
November 22, 2012

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
Answer accepted
Ivan Maduro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 26, 2012

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.

Cheers,

Ivan.

Suggest an answer

Log in or Sign up to answer