I have seen the other on this exact same topic but none of them seemed to help.
I am using an addon called ConfiForms to create a ticket from Confluence to Jira software. I have been able to get it to create tickets but I'm having problems with the date fields. Both Due Date and custom date picker fields cause the same errors.
ConfiForms uses an API key for authentication and has proper security.
If I pull the duedate field and any custom fields with the date picker the code works fine. This is the error I get:
You need to post a valid JSON to the service. This is what you are trying to post: { "fields": { "project": { "key": "IO" }, "summary": "New order", "description": "New order for an un-named user.", "customfield_10064": "Test", "customfield_10065": "123", "customfield_10071": "Test", "duedate": "2021-05-28" "issuetype": { "name": "Task" } } }
Please note that I am using the new confluence editor and the /code macro for the JSON as suggested by the ConfiForms developer.
Edit: This is the date format for the server:
jira.date.picker.java.format | MM/dd/yy | ||
jira.date.picker.javascript.format | %m/%d/%y | ||
jira.date.time.picker.java.format | MM/dd/yy h:mm a | ||
jira.date.time.picker.javascript.format | %m/%d/%y %I:%M %p |
Hi
Just like the error tells you - the JSON you are trying to post is invalid
It is missing comma after the dueDate field mapping
Alex
I have spent a few hours on this and now it works. Looks like I need to get a JSON editor.
Thanks!
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.