we're develop react based webapp for this module serviceDeskPortalRequestCreatePropertyPanels
we need to save data into jira issue entity property. however we have difficulty using the JavaScript API to serialize data. when using react app to serialize data we always have this error.
Error message:
onSubmit: Connect addon timed out while serializing request information for request-type-id: 11
I can serialize object with plain html+jquery+(Jira service desk JavaScript API)
but with the react app, seems serialize object always has this time out error.
How can I fix this.
@Gary_Zhang Each addon that is rendered in the create request screen expects you to have added a validation listener that reacts when called after the 'send' button is clicked. When your your listener code is called the atlassian code waits for the addon to call requestProperties.validate(<true | false>). In fact, it waits for all addons that were rendered on that screen to call that validate() method. If any don't do it with in a second or so, the screen fires that timeout error you are getting.
If you have only one addon, make sure you've registered this listener and that it calls validate() after submit. If you have more than one addon, you'll have to make sure they all result in the validate() method being called.
Also, you can't do any heavyweight calculations or network calls in these listeners because the timeout value the set is very small.
Hi Gary,
I would suggest reaching out to the Developer Community:
https://community.developer.atlassian.com/
There you will be able to get better support for your development queries.
Cheers,
Paulo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.