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

Marat I'm New Here Sep 15, 2017

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.

Marat I'm New Here Sep 20, 2017

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

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,316 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