Webhook not firing on issue create system event but does in all others events

Hi everone. Does somebody knows what means 

Transition cannot be sent to webhook as an issue has not been created yet ?

In jira's log when CreateIssueDetails or QuickCreateIssue is requested. But on other system events it does. Checkbox on create event turned on in a hook settings.

1 answer

1 accepted

0 vote

The error message you posted appears to be generated by the webhooks plugin in JIRA.   I dug into the code of this plugin and found only one place where this error appears to be generated:

        if (issue == null || !issue.isCreated())
        {
            logger.error("Transition cannot be sent to webhook as an issue has not been created yet.");
            return;
        }

This indicates that only if the issue is null or has not yet been created would this error get generated. 

Since this webhook seems to be triggered on the issue created event, my concern is to learn why the webhook might be getting fired off before Jira is sure the issue exists.

Is this happening all the time?  In certain projects?

I'd be interested to see what your workflow looks like for the project where these issues are created.  Specifically, I'd want to take a close look at the create transition and see what postfunctions exists there and their order.

Your post functions for this should be specifically in the order below:

createpostfun.png

If you are missing any of these, or they are not in this specific order, it could be that Jira is triggering the webhook before the issue has been both created, and reindexed by Jira.  In either case, Jira would be unable to see that issue and provide the details on that issue into the webhook posted data.

If this doesn't help, I'd like to know more about your specific version of Jira so we can try to investigate this further.

Yes. The order of Post Functions means. Put the hook firing in the last. And it works. Thanks!

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 yesterday in Jira Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

91 views 0 2
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