[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.

Cheers,

Ivan.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

650 views 6 12
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