Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Problems with the Rest API and due date Edited

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.formatMM/dd/yy  
jira.date.picker.javascript.format%m/%d/%y  
jira.date.time.picker.java.formatMM/dd/yy h:mm a  
jira.date.time.picker.javascript.format%m/%d/%y %I:%M %p

1 answer

1 accepted

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

Screenshot 2021-05-21 at 18.16.07.png

Alex

I have spent a few hours on this and now it works. Looks like I need to get a JSON editor.

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you